#AF37DA#AF37DA

#AF37DA is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.4% C 0.242 H 315.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF37DA
RGBrgb(175, 55, 218)
HSLhsl(284, 69%, 54%)
HSVhsv(284, 75%, 85%)
CMYKcmyk(19.7%, 74.8%, 0%, 14.5%)
CIE-LABlab(48.15, 70.25, -60.28)
CIE-LCHlch(48.15, 92.57, 319.37°)
OKLaboklab(58.43% 0.1715 -0.17)
OKLCHoklch(58.43% 0.242 315.3)
XYZxyz(31.6982, 16.9095, 67.9102)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37DA #62DA37
analogous
#5D37DA #AF37DA #DA37B3
triadic
#AF37DA #DAAF37 #37DAAF
tetradic
#AF37DA #DA5D37 #62DA37 #37B3DA
square
#AF37DA #DA5D37 #62DA37 #37B3DA
split-complementary
#AF37DA #B3DA37 #37DA5D
monochromatic
#64187F #8C21B3 #AF37DA #C46BE4 #D89EED

Accessibility & contrast

On white

4.79
#AF37DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AF37DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37DA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37DA#FFFFFF#000000##FFFFFF
##AF37DA1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#3175D6
Tritanopia (blue-blind)
#AC5B87
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af37da;
/* rgb */ color: rgb(175, 55, 218);
/* oklch */ color: oklch(58.4% 0.242 315.3);
Tailwind
colors: {
  custom: {
    50: '#cc7ae6',
    500: '#af37da',
    950: '#000000',
  },
}
SCSS
$custom: #af37da;
$custom-light: #cc7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#af37da",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 218
  },
  "hsl": {
    "h": 284.172,
    "s": 68.776,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58429,
    "c": 0.24153,
    "h": 315.3
  },
  "luminance": 0.16908
}

Semantic roles & 50–950 ramp

primary
#AF37DA
secondary
#A6D993
accent
#EC3C6A
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF37DA

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

Preview Lab → · Contrast checker → · Palette generator →

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