#AF37CD#AF37CD

#AF37CD is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.230 H 318.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF37CD
RGBrgb(175, 55, 205)
HSLhsl(288, 60%, 51%)
HSVhsv(288, 73%, 80%)
CMYKcmyk(14.6%, 73.2%, 0%, 19.6%)
CIE-LABlab(47.31, 67.79, -54.18)
CIE-LCHlch(47.31, 86.78, 321.37°)
OKLaboklab(57.57% 0.1731 -0.1521)
OKLCHoklch(57.57% 0.23 318.7)
XYZxyz(30.0633, 16.2555, 59.2998)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37CD #55CD37
analogous
#6437CD #AF37CD #CD37A0
triadic
#AF37CD #CDAF37 #37CDAF
tetradic
#AF37CD #CD6437 #55CD37 #37A0CD
square
#AF37CD #CD6437 #55CD37 #37A0CD
split-complementary
#AF37CD #A0CD37 #37CD64
monochromatic
#5E1C6E #87289F #AF37CD #C368D9 #D699E5

Accessibility & contrast

On white

4.94
#AF37CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF37CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37CD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37CD#FFFFFF#000000##FFFFFF
##AF37CD1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#AF567F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af37cd;
/* rgb */ color: rgb(175, 55, 205);
/* oklch */ color: oklch(57.6% 0.230 318.7);
Tailwind
colors: {
  custom: {
    50: '#cb7add',
    500: '#af37cd',
    950: '#000000',
  },
}
SCSS
$custom: #af37cd;
$custom-light: #cb7add;
$custom-dark: #000000;
JSON
{
  "hex": "#af37cd",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 205
  },
  "hsl": {
    "h": 288,
    "s": 60,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57569,
    "c": 0.23043,
    "h": 318.7
  },
  "luminance": 0.16254
}

Semantic roles & 50–950 ramp

primary
#AF37CD
secondary
#9CD18F
accent
#E34564
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF37CD

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

Preview Lab → · Contrast checker → · Palette generator →

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