#AF24A2#AF24A2

#AF24A2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.216 H 332.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF24A2
RGBrgb(175, 36, 162)
HSLhsl(306, 66%, 41%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 79.4%, 7.4%, 31.4%)
CIE-LABlab(42.74, 66.44, -36.21)
CIE-LCHlch(42.74, 75.66, 331.41°)
OKLaboklab(53.51% 0.1913 -0.0996)
OKLCHoklch(53.51% 0.216 332.5)
XYZxyz(24.8318, 12.9865, 35.3742)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A2 #24AF31
analogous
#7724AF #AF24A2 #AF245C
triadic
#AF24A2 #A2AF24 #24A2AF
tetradic
#AF24A2 #AF7724 #24AF31 #245CAF
square
#AF24A2 #AF7724 #24AF31 #245CAF
split-complementary
#AF24A2 #5CAF24 #24AF77
monochromatic
#490F44 #7C1A73 #AF24A2 #D63AC8 #E16DD6

Accessibility & contrast

On white

5.84
#AF24A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF24A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A2#FFFFFF#000000##FFFFFF
##AF24A21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1959A5
Deuteranopia (green-blind)
#556C9F
Tritanopia (blue-blind)
#B73563
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af24a2;
/* rgb */ color: rgb(175, 36, 162);
/* oklch */ color: oklch(53.5% 0.216 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb70be',
    500: '#af24a2',
    950: '#000000',
  },
}
SCSS
$custom: #af24a2;
$custom-light: #cb70be;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a2",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 162
  },
  "hsl": {
    "h": 305.612,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53511,
    "c": 0.21566,
    "h": 332.5
  },
  "luminance": 0.12984
}

Semantic roles & 50–950 ramp

primary
#AF24A2
secondary
#68C771
accent
#E94F3F
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A2

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

Preview Lab → · Contrast checker → · Palette generator →

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