#AF24A1#AF24A1

#AF24A1 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.215 H 332.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF24A1
RGBrgb(175, 36, 161)
HSLhsl(306, 66%, 41%)
HSVhsv(306, 79%, 69%)
CMYKcmyk(0%, 79.4%, 8%, 31.4%)
CIE-LABlab(42.69, 66.29, -35.69)
CIE-LCHlch(42.69, 75.29, 331.70°)
OKLaboklab(53.46% 0.1912 -0.0981)
OKLCHoklch(53.46% 0.215 332.8)
XYZxyz(24.7432, 12.9511, 34.9080)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24A1 #24AF32
analogous
#7824AF #AF24A1 #AF245C
triadic
#AF24A1 #A1AF24 #24A1AF
tetradic
#AF24A1 #AF7824 #24AF32 #245CAF
square
#AF24A1 #AF7824 #24AF32 #245CAF
split-complementary
#AF24A1 #5CAF24 #24AF78
monochromatic
#490F44 #7C1A72 #AF24A1 #D63AC7 #E16DD5

Accessibility & contrast

On white

5.85
#AF24A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF24A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24A1
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24A1#FFFFFF#000000##FFFFFF
##AF24A11.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B58A4
Deuteranopia (green-blind)
#556C9E
Tritanopia (blue-blind)
#B73562
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af24a1;
/* rgb */ color: rgb(175, 36, 161);
/* oklch */ color: oklch(53.5% 0.215 332.8);
Tailwind
colors: {
  custom: {
    50: '#cb70bd',
    500: '#af24a1',
    950: '#000000',
  },
}
SCSS
$custom: #af24a1;
$custom-light: #cb70bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af24a1",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 161
  },
  "hsl": {
    "h": 306.043,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53456,
    "c": 0.21495,
    "h": 332.8
  },
  "luminance": 0.12949
}

Semantic roles & 50–950 ramp

primary
#AF24A1
secondary
#68C771
accent
#E9503F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF24A1

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

Preview Lab → · Contrast checker → · Palette generator →

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