#AF00A4

A color in the Purple, Crimson, Magenta family

#af00a4 is a color in the Purple, Crimson, Magenta family: RGB(175, 0, 164), HSL(304°, 100%, 34%), CMYK(0%, 100%, 6%, 31%). Closest named color: mediumvioletred. Contrast is 6.25:1 on white and 3.36:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#af00a4
RGBrgb(175 0 164)
RGB (legacy)rgb(175, 0, 164)
RGB %rgb(69% 0% 64%)
HSLhsl(304 100% 34%)
HSV / HSBhsv(304, 100%, 69%)
HWBhwb(304 0% 31%)
CMYKcmyk(0%, 100%, 6%, 31%)
CIELAB (D50)lab(40.88 69.37 -39.94)
LCHlch(40.88 80.05 330.07)
OKLaboklab(0.5223 0.208 -0.1115)
OKLCHoklch(0.5223 0.2359 331.8)
Decimal11468964

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 7.9
Closest web-safe color#990099
Hue304°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)34%
Brightness or Value (HSV)69%
Luminance (Rec.601 / Rec.709)28% / 19%
Relative luminance (WCAG)0.1179
Red / Green / Blue175 / 0 / 164

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.25:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.36:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 78.7 / -23.1 · As background with white / black text: Lc -84 / 25.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #af00a4;
  --color-brand-oklch: oklch(52.23% 0.2359 331.8);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(175 0 164 / 50%); }
/* Tailwind CSS */
<div class="bg-[#af00a4] text-[#af00a4] border-[#af00a4]">