#AF24A8#AF24A8

#AF24A8 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.220 H 330.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF24A8
RGBrgb(175, 36, 168)
HSLhsl(303, 66%, 41%)
HSVhsv(303, 79%, 69%)
CMYKcmyk(0%, 79.4%, 4%, 31.4%)
CIE-LABlab(43.07, 67.35, -39.27)
CIE-LCHlch(43.07, 77.97, 329.75°)
OKLaboklab(53.85% 0.1913 -0.1085)
OKLCHoklch(53.85% 0.22 330.4)
XYZxyz(25.3779, 13.2049, 38.2504)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A8 #24AF2B
analogous
#7124AF #AF24A8 #AF2463
triadic
#AF24A8 #A8AF24 #24A8AF
tetradic
#AF24A8 #AF7124 #24AF2B #2463AF
square
#AF24A8 #AF7124 #24AF2B #2463AF
split-complementary
#AF24A8 #63AF24 #24AF71
monochromatic
#490F47 #7C1A77 #AF24A8 #D63ACF #E16DDB

Accessibility & contrast

On white

5.77
#AF24A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF24A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A8#FFFFFF#000000##FFFFFF
##AF24A81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5AAB
Deuteranopia (green-blind)
#526CA5
Tritanopia (blue-blind)
#B63966
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af24a8;
/* rgb */ color: rgb(175, 36, 168);
/* oklch */ color: oklch(53.9% 0.220 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c2',
    500: '#af24a8',
    950: '#000000',
  },
}
SCSS
$custom: #af24a8;
$custom-light: #cb70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a8",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 303.022,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53851,
    "c": 0.21993,
    "h": 330.4
  },
  "luminance": 0.13203
}

Semantic roles & 50–950 ramp

primary
#AF24A8
secondary
#68C76C
accent
#E9483F
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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