#AF37D4#AF37D4

#AF37D4 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.236 H 316.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF37D4
RGBrgb(175, 55, 212)
HSLhsl(286, 65%, 52%)
HSVhsv(286, 74%, 83%)
CMYKcmyk(17.5%, 74.1%, 0%, 16.9%)
CIE-LABlab(47.75, 69.11, -57.48)
CIE-LCHlch(47.75, 89.89, 320.25°)
OKLaboklab(58.03% 0.1723 -0.1618)
OKLCHoklch(58.03% 0.236 316.8)
XYZxyz(30.9273, 16.6011, 63.8498)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37D4 #5CD437
analogous
#6137D4 #AF37D4 #D437AA
triadic
#AF37D4 #D4AF37 #37D4AF
tetradic
#AF37D4 #D46137 #5CD437 #37AAD4
square
#AF37D4 #D46137 #5CD437 #37AAD4
split-complementary
#AF37D4 #AAD437 #37D461
monochromatic
#611A77 #8A24A9 #AF37D4 #C369DF #D79CEA

Accessibility & contrast

On white

4.86
#AF37D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF37D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37D4
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37D4#FFFFFF#000000##FFFFFF
##AF37D41.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#3975D1
Tritanopia (blue-blind)
#AD5983
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af37d4;
/* rgb */ color: rgb(175, 55, 212);
/* oklch */ color: oklch(58.0% 0.236 316.8);
Tailwind
colors: {
  custom: {
    50: '#cb7ae2',
    500: '#af37d4',
    950: '#000000',
  },
}
SCSS
$custom: #af37d4;
$custom-light: #cb7ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#af37d4",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 212
  },
  "hsl": {
    "h": 285.86,
    "s": 64.609,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58027,
    "c": 0.23638,
    "h": 316.8
  },
  "luminance": 0.166
}

Semantic roles & 50–950 ramp

primary
#AF37D4
secondary
#A1D691
accent
#E84068
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF37D4

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

Preview Lab → · Contrast checker → · Palette generator →

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