#AF24B1#AF24B1

#AF24B1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.226 H 327.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF24B1
RGBrgb(175, 36, 177)
HSLhsl(299, 66%, 42%)
HSVhsv(299, 80%, 69%)
CMYKcmyk(1.1%, 79.7%, 0%, 30.6%)
CIE-LABlab(43.58, 68.77, -43.80)
CIE-LCHlch(43.58, 81.53, 327.51°)
OKLaboklab(54.38% 0.191 -0.1217)
OKLCHoklch(54.38% 0.226 327.5)
XYZxyz(26.2455, 13.5520, 42.8199)
Luminance0.1355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24B1 #26B124
analogous
#6924B1 #AF24B1 #B1246D
triadic
#AF24B1 #B1AF24 #24B1AF
tetradic
#AF24B1 #B16924 #26B124 #246DB1
square
#AF24B1 #B16924 #26B124 #246DB1
split-complementary
#AF24B1 #6DB124 #24B169
monochromatic
#4A0F4B #7D1A7E #AF24B1 #D53BD7 #E06EE1

Accessibility & contrast

On white

5.66
#AF24B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF24B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24B1
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24B1#FFFFFF#000000##FFFFFF
##AF24B11.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#4C6DAE
Tritanopia (blue-blind)
#B43E6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af24b1;
/* rgb */ color: rgb(175, 36, 177);
/* oklch */ color: oklch(54.4% 0.226 327.5);
Tailwind
colors: {
  custom: {
    50: '#cb71c9',
    500: '#af24b1',
    950: '#000000',
  },
}
SCSS
$custom: #af24b1;
$custom-light: #cb71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af24b1",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 299.149,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5438,
    "c": 0.22648,
    "h": 327.5
  },
  "luminance": 0.1355
}

Semantic roles & 50–950 ramp

primary
#AF24B1
secondary
#6AC869
accent
#E93F41
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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