#AF37D7#AF37D7

#AF37D7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.2% C 0.239 H 316.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF37D7
RGBrgb(175, 55, 215)
HSLhsl(285, 67%, 53%)
HSVhsv(285, 74%, 84%)
CMYKcmyk(18.6%, 74.4%, 0%, 15.7%)
CIE-LABlab(47.95, 69.67, -58.89)
CIE-LCHlch(47.95, 91.23, 319.80°)
OKLaboklab(58.23% 0.1719 -0.1659)
OKLCHoklch(58.23% 0.239 316)
XYZxyz(31.3092, 16.7539, 65.8614)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37D7 #5FD737
analogous
#5F37D7 #AF37D7 #D737AF
triadic
#AF37D7 #D7AF37 #37D7AF
tetradic
#AF37D7 #D75F37 #5FD737 #37AFD7
square
#AF37D7 #D75F37 #5FD737 #37AFD7
split-complementary
#AF37D7 #AFD737 #37D75F
monochromatic
#62197B #8B23AE #AF37D7 #C36AE1 #D89DEB

Accessibility & contrast

On white

4.83
#AF37D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF37D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37D7
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37D7#FFFFFF#000000##FFFFFF
##AF37D71.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#3575D4
Tritanopia (blue-blind)
#AC5A85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af37d7;
/* rgb */ color: rgb(175, 55, 215);
/* oklch */ color: oklch(58.2% 0.239 316.0);
Tailwind
colors: {
  custom: {
    50: '#cb7ae4',
    500: '#af37d7',
    950: '#000000',
  },
}
SCSS
$custom: #af37d7;
$custom-light: #cb7ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#af37d7",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 215
  },
  "hsl": {
    "h": 285,
    "s": 66.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58227,
    "c": 0.23895,
    "h": 316
  },
  "luminance": 0.16753
}

Semantic roles & 50–950 ramp

primary
#AF37D7
secondary
#A4D792
accent
#EA3E69
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF37D7

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

Preview Lab → · Contrast checker → · Palette generator →

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