#AF24E3#AF24E3

#AF24E3 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.7% C 0.265 H 313.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF24E3
RGBrgb(175, 36, 227)
HSLhsl(284, 77%, 52%)
HSVhsv(284, 84%, 89%)
CMYKcmyk(22.9%, 84.1%, 0%, 11%)
CIE-LABlab(46.87, 77.46, -67.47)
CIE-LCHlch(46.87, 102.72, 318.94°)
OKLaboklab(57.73% 0.1835 -0.191)
OKLCHoklch(57.73% 0.265 313.9)
XYZxyz(32.1728, 15.9229, 74.0368)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF24E3 #58E324
analogous
#5024E3 #AF24E3 #E324B8
triadic
#AF24E3 #E3AF24 #24E3AF
tetradic
#AF24E3 #E35024 #58E324 #24B8E3
square
#AF24E3 #E35024 #58E324 #24B8E3
split-complementary
#AF24E3 #B8E324 #24E350
monochromatic
#5F107D #8817B3 #AF24E3 #C35AEA #D791F1

Accessibility & contrast

On white

5.02
#AF24E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF24E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF24E3
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF24E3#FFFFFF#000000##FFFFFF
##AF24E31.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E8
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#AA5788
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af24e3;
/* rgb */ color: rgb(175, 36, 227);
/* oklch */ color: oklch(57.7% 0.265 313.9);
Tailwind
colors: {
  custom: {
    50: '#cd73ed',
    500: '#af24e3',
    950: '#000000',
  },
}
SCSS
$custom: #af24e3;
$custom-light: #cd73ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af24e3",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 227
  },
  "hsl": {
    "h": 283.665,
    "s": 77.328,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57733,
    "c": 0.26489,
    "h": 313.9
  },
  "luminance": 0.15922
}

Semantic roles & 50–950 ramp

primary
#AF24E3
secondary
#9EDB87
accent
#F43468
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #AF24E3

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

Preview Lab → · Contrast checker → · Palette generator →

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