#AF24A4#AF24A4

#AF24A4 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.6% C 0.217 H 331.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF24A4
RGBrgb(175, 36, 164)
HSLhsl(305, 66%, 41%)
HSVhsv(305, 79%, 69%)
CMYKcmyk(0%, 79.4%, 6.3%, 31.4%)
CIE-LABlab(42.85, 66.74, -37.24)
CIE-LCHlch(42.85, 76.42, 330.84°)
OKLaboklab(53.62% 0.1913 -0.1026)
OKLCHoklch(53.62% 0.217 331.8)
XYZxyz(25.0110, 13.0582, 36.3180)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A4 #24AF2F
analogous
#7524AF #AF24A4 #AF245F
triadic
#AF24A4 #A4AF24 #24A4AF
tetradic
#AF24A4 #AF7524 #24AF2F #245FAF
square
#AF24A4 #AF7524 #24AF2F #245FAF
split-complementary
#AF24A4 #5FAF24 #24AF75
monochromatic
#490F45 #7C1A74 #AF24A4 #D63ACA #E16DD8

Accessibility & contrast

On white

5.82
#AF24A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF24A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A4#FFFFFF#000000##FFFFFF
##AF24A41.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1659A7
Deuteranopia (green-blind)
#546CA1
Tritanopia (blue-blind)
#B63764
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af24a4;
/* rgb */ color: rgb(175, 36, 164);
/* oklch */ color: oklch(53.6% 0.217 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb70bf',
    500: '#af24a4',
    950: '#000000',
  },
}
SCSS
$custom: #af24a4;
$custom-light: #cb70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a4",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 164
  },
  "hsl": {
    "h": 304.748,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53623,
    "c": 0.21707,
    "h": 331.8
  },
  "luminance": 0.13056
}

Semantic roles & 50–950 ramp

primary
#AF24A4
secondary
#68C76F
accent
#E94C3F
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A4

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

Preview Lab → · Contrast checker → · Palette generator →

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