#AF24AC#AF24AC

#AF24AC is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.223 H 329.1°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AF24AC
RGBrgb(175, 36, 172)
HSLhsl(301, 66%, 41%)
HSVhsv(301, 79%, 69%)
CMYKcmyk(0%, 79.4%, 1.7%, 31.4%)
CIE-LABlab(43.30, 67.97, -41.30)
CIE-LCHlch(43.30, 79.54, 328.72°)
OKLaboklab(54.08% 0.1912 -0.1144)
OKLCHoklch(54.08% 0.223 329.1)
XYZxyz(25.7563, 13.3563, 40.2432)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24AC #24AF27
analogous
#6D24AF #AF24AC #AF2467
triadic
#AF24AC #ACAF24 #24ACAF
tetradic
#AF24AC #AF6D24 #24AF27 #2467AF
square
#AF24AC #AF6D24 #24AF27 #2467AF
split-complementary
#AF24AC #67AF24 #24AF6D
monochromatic
#490F48 #7C1A7A #AF24AC #D63AD3 #E16DDE

Accessibility & contrast

On white

5.72
#AF24AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AF24AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24AC
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24AC#FFFFFF#000000##FFFFFF
##AF24AC1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#4F6DA9
Tritanopia (blue-blind)
#B53B68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af24ac;
/* rgb */ color: rgb(175, 36, 172);
/* oklch */ color: oklch(54.1% 0.223 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb71c5',
    500: '#af24ac',
    950: '#000000',
  },
}
SCSS
$custom: #af24ac;
$custom-light: #cb71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af24ac",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 172
  },
  "hsl": {
    "h": 301.295,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.54083,
    "c": 0.22281,
    "h": 329.1
  },
  "luminance": 0.13354
}

Semantic roles & 50–950 ramp

primary
#AF24AC
secondary
#68C76A
accent
#E9433F
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF24AC

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

Preview Lab → · Contrast checker → · Palette generator →

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