#AF37B7#AF37B7

#AF37B7 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.212 H 325.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF37B7
RGBrgb(175, 55, 183)
HSLhsl(296, 54%, 47%)
HSVhsv(296, 70%, 72%)
CMYKcmyk(4.4%, 69.9%, 0%, 28.2%)
CIE-LABlab(46.00, 63.84, -43.49)
CIE-LCHlch(46.00, 77.24, 325.74°)
OKLaboklab(56.21% 0.1743 -0.1209)
OKLCHoklch(56.21% 0.212 325.2)
XYZxyz(27.5920, 15.2670, 46.2841)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37B7 #3FB737
analogous
#6F37B7 #AF37B7 #B7377F
triadic
#AF37B7 #B7AF37 #37B7AF
tetradic
#AF37B7 #B76F37 #3FB737 #377FB7
square
#AF37B7 #B76F37 #3FB737 #377FB7
split-complementary
#AF37B7 #7FB737 #37B76F
monochromatic
#551B59 #822988 #AF37B7 #C75DCE #D78CDC

Accessibility & contrast

On white

5.18
#AF37B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF37B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37B7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37B7#FFFFFF#000000##FFFFFF
##AF37B71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1764BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#B34C73
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af37b7;
/* rgb */ color: rgb(175, 55, 183);
/* oklch */ color: oklch(56.2% 0.212 325.2);
Tailwind
colors: {
  custom: {
    50: '#ca79cd',
    500: '#af37b7',
    950: '#000000',
  },
}
SCSS
$custom: #af37b7;
$custom-light: #ca79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af37b7",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 296.25,
    "s": 53.782,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56213,
    "c": 0.21209,
    "h": 325.2
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#AF37B7
secondary
#87C783
accent
#DD4B54
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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