#AF24A5#AF24A5

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

Color values

HEX#AF24A5
RGBrgb(175, 36, 165)
HSLhsl(304, 66%, 41%)
HSVhsv(304, 79%, 69%)
CMYKcmyk(0%, 79.4%, 5.7%, 31.4%)
CIE-LABlab(42.91, 66.89, -37.75)
CIE-LCHlch(42.91, 76.81, 330.56°)
OKLaboklab(53.68% 0.1913 -0.1041)
OKLCHoklch(53.68% 0.218 331.4)
XYZxyz(25.1016, 13.0944, 36.7954)
Luminance0.1309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A5 #24AF2E
analogous
#7424AF #AF24A5 #AF245F
triadic
#AF24A5 #A5AF24 #24A5AF
tetradic
#AF24A5 #AF7424 #24AF2E #245FAF
square
#AF24A5 #AF7424 #24AF2E #245FAF
split-complementary
#AF24A5 #5FAF24 #24AF74
monochromatic
#490F45 #7C1A75 #AF24A5 #D63ACB #E16DD8

Accessibility & contrast

On white

5.80
#AF24A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF24A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A5
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A5#FFFFFF#000000##FFFFFF
##AF24A51.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#B63764
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af24a5;
/* rgb */ color: rgb(175, 36, 165);
/* oklch */ color: oklch(53.7% 0.218 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c0',
    500: '#af24a5',
    950: '#000000',
  },
}
SCSS
$custom: #af24a5;
$custom-light: #cb70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a5",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 304.317,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53679,
    "c": 0.21778,
    "h": 331.4
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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