#AF37D5#AF37D5

#AF37D5 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.237 H 316.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF37D5
RGBrgb(175, 55, 213)
HSLhsl(286, 65%, 53%)
HSVhsv(286, 74%, 84%)
CMYKcmyk(17.8%, 74.2%, 0%, 16.5%)
CIE-LABlab(47.82, 69.29, -57.95)
CIE-LCHlch(47.82, 90.33, 320.09°)
OKLaboklab(58.09% 0.1722 -0.1632)
OKLCHoklch(58.09% 0.237 316.5)
XYZxyz(31.0538, 16.6517, 64.5162)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37D5 #5DD537
analogous
#6037D5 #AF37D5 #D537AC
triadic
#AF37D5 #D5AF37 #37D5AF
tetradic
#AF37D5 #D56037 #5DD537 #37ACD5
square
#AF37D5 #D56037 #5DD537 #37ACD5
split-complementary
#AF37D5 #ACD537 #37D560
monochromatic
#611978 #8A24AB #AF37D5 #C36AE0 #D79CEA

Accessibility & contrast

On white

4.85
#AF37D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF37D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37D5
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37D5#FFFFFF#000000##FFFFFF
##AF37D51.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#3775D2
Tritanopia (blue-blind)
#AD5984
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af37d5;
/* rgb */ color: rgb(175, 55, 213);
/* oklch */ color: oklch(58.1% 0.237 316.5);
Tailwind
colors: {
  custom: {
    50: '#cb7ae3',
    500: '#af37d5',
    950: '#000000',
  },
}
SCSS
$custom: #af37d5;
$custom-light: #cb7ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#af37d5",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 213
  },
  "hsl": {
    "h": 285.57,
    "s": 65.289,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58093,
    "c": 0.23724,
    "h": 316.5
  },
  "luminance": 0.1665
}

Semantic roles & 50–950 ramp

primary
#AF37D5
secondary
#A2D692
accent
#E84068
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A15
muted
#837C84

Preview Lab

Preview with #AF37D5

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

Preview Lab → · Contrast checker → · Palette generator →

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