#AF37D2#AF37D2

#AF37D2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.235 H 317.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF37D2
RGBrgb(175, 55, 210)
HSLhsl(286, 63%, 52%)
HSVhsv(286, 74%, 82%)
CMYKcmyk(16.7%, 73.8%, 0%, 17.6%)
CIE-LABlab(47.62, 68.73, -56.54)
CIE-LCHlch(47.62, 89.00, 320.56°)
OKLaboklab(57.9% 0.1726 -0.1591)
OKLCHoklch(57.9% 0.235 317.3)
XYZxyz(30.6765, 16.5008, 62.5294)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37D2 #5AD237
analogous
#6237D2 #AF37D2 #D237A7
triadic
#AF37D2 #D2AF37 #37D2AF
tetradic
#AF37D2 #D26237 #5AD237 #37A7D2
square
#AF37D2 #D26237 #5AD237 #37A7D2
split-complementary
#AF37D2 #A7D237 #37D262
monochromatic
#601A74 #8925A6 #AF37D2 #C369DD #D79BE8

Accessibility & contrast

On white

4.88
#AF37D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#AF37D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37D2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37D2#FFFFFF#000000##FFFFFF
##AF37D21.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#3B75CF
Tritanopia (blue-blind)
#AD5882
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af37d2;
/* rgb */ color: rgb(175, 55, 210);
/* oklch */ color: oklch(57.9% 0.235 317.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ae1',
    500: '#af37d2',
    950: '#000000',
  },
}
SCSS
$custom: #af37d2;
$custom-light: #cb7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#af37d2",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 286.452,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57895,
    "c": 0.23468,
    "h": 317.3
  },
  "luminance": 0.16499
}

Semantic roles & 50–950 ramp

primary
#AF37D2
secondary
#A0D490
accent
#E64167
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF37D2

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

Preview Lab → · Contrast checker → · Palette generator →

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