#AF23AC#AF23AC

#AF23AC is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.224 H 329.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF23AC
RGBrgb(175, 35, 172)
HSLhsl(301, 67%, 41%)
HSVhsv(301, 80%, 69%)
CMYKcmyk(0%, 80%, 1.7%, 31.4%)
CIE-LABlab(43.21, 68.23, -41.44)
CIE-LCHlch(43.21, 79.83, 328.73°)
OKLaboklab(54.02% 0.1919 -0.1148)
OKLCHoklch(54.02% 0.224 329.1)
XYZxyz(25.7264, 13.2966, 40.2333)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23AC #23AF26
analogous
#6C23AF #AF23AC #AF2366
triadic
#AF23AC #ACAF23 #23ACAF
tetradic
#AF23AC #AF6C23 #23AF26 #2366AF
square
#AF23AC #AF6C23 #23AF26 #2366AF
split-complementary
#AF23AC #66AF23 #23AF6C
monochromatic
#490F48 #7C197A #AF23AC #D738D4 #E16BDF

Accessibility & contrast

On white

5.74
#AF23AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF23AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF23AC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF23AC#FFFFFF#000000##FFFFFF
##AF23AC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#4F6CA9
Tritanopia (blue-blind)
#B53A68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af23ac;
/* rgb */ color: rgb(175, 35, 172);
/* oklch */ color: oklch(54.0% 0.224 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c5',
    500: '#af23ac',
    950: '#000000',
  },
}
SCSS
$custom: #af23ac;
$custom-light: #cb70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af23ac",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 301.286,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5402,
    "c": 0.22365,
    "h": 329.1
  },
  "luminance": 0.13295
}

Semantic roles & 50–950 ramp

primary
#AF23AC
secondary
#66C768
accent
#EA423E
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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