#AF24A6#AF24A6

#AF24A6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.218 H 331.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF24A6
RGBrgb(175, 36, 166)
HSLhsl(304, 66%, 41%)
HSVhsv(304, 79%, 69%)
CMYKcmyk(0%, 79.4%, 5.1%, 31.4%)
CIE-LABlab(42.96, 67.04, -38.26)
CIE-LCHlch(42.96, 77.19, 330.29°)
OKLaboklab(53.74% 0.1913 -0.1056)
OKLCHoklch(53.74% 0.219 331.1)
XYZxyz(25.1930, 13.1310, 37.2767)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A6 #24AF2D
analogous
#7324AF #AF24A6 #AF2461
triadic
#AF24A6 #A6AF24 #24A6AF
tetradic
#AF24A6 #AF7324 #24AF2D #2461AF
square
#AF24A6 #AF7324 #24AF2D #2461AF
split-complementary
#AF24A6 #61AF24 #24AF73
monochromatic
#490F46 #7C1A76 #AF24A6 #D63ACC #E16DD9

Accessibility & contrast

On white

5.79
#AF24A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF24A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A6
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A6#FFFFFF#000000##FFFFFF
##AF24A61.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1159A9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#B63865
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af24a6;
/* rgb */ color: rgb(175, 36, 166);
/* oklch */ color: oklch(53.7% 0.218 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c1',
    500: '#af24a6',
    950: '#000000',
  },
}
SCSS
$custom: #af24a6;
$custom-light: #cb70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a6",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 303.885,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53736,
    "c": 0.2185,
    "h": 331.1
  },
  "luminance": 0.13129
}

Semantic roles & 50–950 ramp

primary
#AF24A6
secondary
#68C76E
accent
#E94A3F
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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