#AF37C4#AF37C4

#AF37C4 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.223 H 321.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF37C4
RGBrgb(175, 55, 196)
HSLhsl(291, 56%, 49%)
HSVhsv(291, 72%, 77%)
CMYKcmyk(10.7%, 71.9%, 0%, 23.1%)
CIE-LABlab(46.76, 66.14, -49.86)
CIE-LCHlch(46.76, 82.83, 322.99°)
OKLaboklab(57% 0.1738 -0.1395)
OKLCHoklch(57% 0.223 321.3)
XYZxyz(29.0081, 15.8334, 53.7421)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37C4 #4CC437
analogous
#6937C4 #AF37C4 #C43793
triadic
#AF37C4 #C4AF37 #37C4AF
tetradic
#AF37C4 #C46937 #4CC437 #3793C4
square
#AF37C4 #C46937 #4CC437 #3793C4
split-complementary
#AF37C4 #93C437 #37C469
monochromatic
#5A1C64 #842A94 #AF37C4 #C365D4 #D694E1

Accessibility & contrast

On white

5.04
#AF37C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF37C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37C4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37C4#FFFFFF#000000##FFFFFF
##AF37C41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C8
Deuteranopia (green-blind)
#4873C1
Tritanopia (blue-blind)
#B0527A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af37c4;
/* rgb */ color: rgb(175, 55, 196);
/* oklch */ color: oklch(57.0% 0.223 321.3);
Tailwind
colors: {
  custom: {
    50: '#cb79d6',
    500: '#af37c4',
    950: '#000000',
  },
}
SCSS
$custom: #af37c4;
$custom-light: #cb79d6;
$custom-dark: #000000;
JSON
{
  "hex": "#af37c4",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 291.064,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56999,
    "c": 0.22284,
    "h": 321.3
  },
  "luminance": 0.15832
}

Semantic roles & 50–950 ramp

primary
#AF37C4
secondary
#94CC8B
accent
#DF485F
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF37C4

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

Preview Lab → · Contrast checker → · Palette generator →

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