#AF00A8

A color in the Purple, Crimson, Magenta family

#af00a8 is a color in the Purple, Crimson, Magenta family: RGB(175, 0, 168), HSL(302°, 100%, 34%), CMYK(0%, 100%, 4%, 31%). Closest named color: darkorchid. Contrast is 6.2:1 on white and 3.39:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#af00a8
RGBrgb(175 0 168)
RGB (legacy)rgb(175, 0, 168)
RGB %rgb(69% 0% 66%)
HSLhsl(302 100% 34%)
HSV / HSBhsv(302, 100%, 69%)
HWBhwb(302 0% 31%)
CMYKcmyk(0%, 100%, 4%, 31%)
CIELAB (D50)lab(41.08 69.79 -42.02)
LCHlch(41.08 81.46 328.95)
OKLaboklab(0.5247 0.2077 -0.1174)
OKLCHoklch(0.5247 0.2385 330.53)
Decimal11468968

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.20:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.39: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.5 / -23.3 · As background with white / black text: Lc -83.7 / 25.6

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