#AF37CC#AF37CC

#AF37CC is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.230 H 319.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF37CC
RGBrgb(175, 55, 204)
HSLhsl(288, 59%, 51%)
HSVhsv(288, 73%, 80%)
CMYKcmyk(14.2%, 73%, 0%, 20%)
CIE-LABlab(47.25, 67.61, -53.70)
CIE-LCHlch(47.25, 86.34, 321.54°)
OKLaboklab(57.51% 0.1732 -0.1507)
OKLCHoklch(57.51% 0.23 319)
XYZxyz(29.9430, 16.2074, 58.6662)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37CC #54CC37
analogous
#6437CC #AF37CC #CC379E
triadic
#AF37CC #CCAF37 #37CCAF
tetradic
#AF37CC #CC6437 #54CC37 #379ECC
square
#AF37CC #CC6437 #54CC37 #379ECC
split-complementary
#AF37CC #9ECC37 #37CC64
monochromatic
#5D1C6D #87289E #AF37CC #C368D8 #D699E5

Accessibility & contrast

On white

4.95
#AF37CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AF37CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37CC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37CC#FFFFFF#000000##FFFFFF
##AF37CC1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#AF557F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af37cc;
/* rgb */ color: rgb(175, 55, 204);
/* oklch */ color: oklch(57.5% 0.230 319.0);
Tailwind
colors: {
  custom: {
    50: '#cb7adc',
    500: '#af37cc',
    950: '#000000',
  },
}
SCSS
$custom: #af37cc;
$custom-light: #cb7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#af37cc",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 288.322,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57505,
    "c": 0.22957,
    "h": 319
  },
  "luminance": 0.16206
}

Semantic roles & 50–950 ramp

primary
#AF37CC
secondary
#9BD08E
accent
#E34564
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AF37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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