#AF23A9#AF23A9

#AF23A9 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.221 H 330.1°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF23A9
RGBrgb(175, 35, 169)
HSLhsl(303, 67%, 41%)
HSVhsv(303, 80%, 69%)
CMYKcmyk(0%, 80%, 3.4%, 31.4%)
CIE-LABlab(43.04, 67.76, -39.92)
CIE-LCHlch(43.04, 78.65, 329.50°)
OKLaboklab(53.85% 0.192 -0.1104)
OKLCHoklch(53.85% 0.221 330.1)
XYZxyz(25.4416, 13.1826, 38.7330)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23A9 #23AF29
analogous
#6F23AF #AF23A9 #AF2363
triadic
#AF23A9 #A9AF23 #23A9AF
tetradic
#AF23A9 #AF6F23 #23AF29 #2363AF
square
#AF23A9 #AF6F23 #23AF29 #2363AF
split-complementary
#AF23A9 #63AF23 #23AF6F
monochromatic
#490F46 #7C1978 #AF23A9 #D738D0 #E16BDC

Accessibility & contrast

On white

5.78
#AF23A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF23A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23A9
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23A9#FFFFFF#000000##FFFFFF
##AF23A91.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065AAC
Deuteranopia (green-blind)
#516CA6
Tritanopia (blue-blind)
#B63966
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af23a9;
/* rgb */ color: rgb(175, 35, 169);
/* oklch */ color: oklch(53.8% 0.221 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c3',
    500: '#af23a9',
    950: '#000000',
  },
}
SCSS
$custom: #af23a9;
$custom-light: #cb70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af23a9",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 302.571,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53845,
    "c": 0.22149,
    "h": 330.1
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

primary
#AF23A9
secondary
#66C76A
accent
#EA463E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF23A9

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF23A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva