#AF37D1#AF37D1

#AF37D1 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.234 H 317.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF37D1
RGBrgb(175, 55, 209)
HSLhsl(287, 63%, 52%)
HSVhsv(287, 74%, 82%)
CMYKcmyk(16.3%, 73.7%, 0%, 18%)
CIE-LABlab(47.56, 68.54, -56.07)
CIE-LCHlch(47.56, 88.55, 320.71°)
OKLaboklab(57.83% 0.1727 -0.1577)
OKLCHoklch(57.83% 0.234 317.6)
XYZxyz(30.5523, 16.4511, 61.8753)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37D1 #59D137
analogous
#6237D1 #AF37D1 #D137A6
triadic
#AF37D1 #D1AF37 #37D1AF
tetradic
#AF37D1 #D16237 #59D137 #37A6D1
square
#AF37D1 #D16237 #59D137 #37A6D1
split-complementary
#AF37D1 #A6D137 #37D162
monochromatic
#601A73 #8926A5 #AF37D1 #C369DC #D79BE8

Accessibility & contrast

On white

4.90
#AF37D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AF37D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37D1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37D1#FFFFFF#000000##FFFFFF
##AF37D11.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#3C74CE
Tritanopia (blue-blind)
#AE5782
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af37d1;
/* rgb */ color: rgb(175, 55, 209);
/* oklch */ color: oklch(57.8% 0.234 317.6);
Tailwind
colors: {
  custom: {
    50: '#cb7ae0',
    500: '#af37d1',
    950: '#000000',
  },
}
SCSS
$custom: #af37d1;
$custom-light: #cb7ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#af37d1",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 209
  },
  "hsl": {
    "h": 286.753,
    "s": 62.602,
    "l": 51.765
  },
  "oklch": {
    "l": 0.57829,
    "c": 0.23383,
    "h": 317.6
  },
  "luminance": 0.1645
}

Semantic roles & 50–950 ramp

primary
#AF37D1
secondary
#9FD490
accent
#E64266
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF37D1

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

Preview Lab → · Contrast checker → · Palette generator →

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