#AF24A3#AF24A3

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

Color values

HEX#AF24A3
RGBrgb(175, 36, 163)
HSLhsl(305, 66%, 41%)
HSVhsv(305, 79%, 69%)
CMYKcmyk(0%, 79.4%, 6.9%, 31.4%)
CIE-LABlab(42.80, 66.59, -36.72)
CIE-LCHlch(42.80, 76.04, 331.12°)
OKLaboklab(53.57% 0.1913 -0.1011)
OKLCHoklch(53.57% 0.216 332.1)
XYZxyz(24.9210, 13.0222, 35.8442)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A3 #24AF30
analogous
#7624AF #AF24A3 #AF245E
triadic
#AF24A3 #A3AF24 #24A3AF
tetradic
#AF24A3 #AF7624 #24AF30 #245EAF
square
#AF24A3 #AF7624 #24AF30 #245EAF
split-complementary
#AF24A3 #5EAF24 #24AF76
monochromatic
#490F44 #7C1A74 #AF24A3 #D63AC9 #E16DD7

Accessibility & contrast

On white

5.83
#AF24A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF24A3
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A3#FFFFFF#000000##FFFFFF
##AF24A31.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1759A6
Deuteranopia (green-blind)
#546CA0
Tritanopia (blue-blind)
#B73663
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af24a3;
/* rgb */ color: rgb(175, 36, 163);
/* oklch */ color: oklch(53.6% 0.216 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb70bf',
    500: '#af24a3',
    950: '#000000',
  },
}
SCSS
$custom: #af24a3;
$custom-light: #cb70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a3",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 163
  },
  "hsl": {
    "h": 305.18,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53567,
    "c": 0.21636,
    "h": 332.1
  },
  "luminance": 0.1302
}

Semantic roles & 50–950 ramp

primary
#AF24A3
secondary
#68C770
accent
#E94E3F
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A3

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

Preview Lab → · Contrast checker → · Palette generator →

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