#AF37D6#AF37D6

#AF37D6 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.2% C 0.238 H 316.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF37D6
RGBrgb(175, 55, 214)
HSLhsl(285, 66%, 53%)
HSVhsv(285, 74%, 84%)
CMYKcmyk(18.2%, 74.3%, 0%, 16.1%)
CIE-LABlab(47.88, 69.48, -58.42)
CIE-LCHlch(47.88, 90.78, 319.94°)
OKLaboklab(58.16% 0.1721 -0.1646)
OKLCHoklch(58.16% 0.238 316.3)
XYZxyz(31.1811, 16.7026, 65.1867)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37D6 #5ED637
analogous
#5F37D6 #AF37D6 #D637AD
triadic
#AF37D6 #D6AF37 #37D6AF
tetradic
#AF37D6 #D65F37 #5ED637 #37ADD6
square
#AF37D6 #D65F37 #5ED637 #37ADD6
split-complementary
#AF37D6 #ADD637 #37D65F
monochromatic
#62197A #8B23AC #AF37D6 #C36AE0 #D89DEB

Accessibility & contrast

On white

4.84
#AF37D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF37D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37D6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37D6#FFFFFF#000000##FFFFFF
##AF37D61.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#3675D3
Tritanopia (blue-blind)
#AC5A85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af37d6;
/* rgb */ color: rgb(175, 55, 214);
/* oklch */ color: oklch(58.2% 0.238 316.3);
Tailwind
colors: {
  custom: {
    50: '#cb7ae3',
    500: '#af37d6',
    950: '#000000',
  },
}
SCSS
$custom: #af37d6;
$custom-light: #cb7ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#af37d6",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 214
  },
  "hsl": {
    "h": 285.283,
    "s": 65.975,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5816,
    "c": 0.23809,
    "h": 316.3
  },
  "luminance": 0.16701
}

Semantic roles & 50–950 ramp

primary
#AF37D6
secondary
#A3D792
accent
#E93F69
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF37D6

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

Preview Lab → · Contrast checker → · Palette generator →

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