#AF00A6

A color in the Purple, Crimson, Magenta family

#af00a6 is a color in the Purple, Crimson, Magenta family: RGB(175, 0, 166), HSL(303°, 100%, 34%), CMYK(0%, 100%, 5%, 31%). Closest named color: mediumvioletred. Contrast is 6.23:1 on white and 3.37:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#af00a6
RGBrgb(175 0 166)
RGB (legacy)rgb(175, 0, 166)
RGB %rgb(69% 0% 65%)
HSLhsl(303 100% 34%)
HSV / HSBhsv(303, 100%, 69%)
HWBhwb(303 0% 31%)
CMYKcmyk(0%, 100%, 5%, 31%)
CIELAB (D50)lab(40.98 69.58 -40.98)
LCHlch(40.98 80.75 329.5)
OKLaboklab(0.5235 0.2078 -0.1144)
OKLCHoklch(0.5235 0.2372 331.16)
Decimal11468966

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.23:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.37: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.6 / -23.2 · As background with white / black text: Lc -83.8 / 25.5

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: #af00a6;
  --color-brand-oklch: oklch(52.35% 0.2372 331.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(175 0 166 / 50%); }
/* Tailwind CSS */
<div class="bg-[#af00a6] text-[#af00a6] border-[#af00a6]">