#AF37B8#AF37B8

#AF37B8 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.213 H 324.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF37B8
RGBrgb(175, 55, 184)
HSLhsl(296, 54%, 47%)
HSVhsv(296, 70%, 72%)
CMYKcmyk(4.9%, 70.1%, 0%, 27.8%)
CIE-LABlab(46.05, 64.01, -43.98)
CIE-LCHlch(46.05, 77.66, 325.51°)
OKLaboklab(56.27% 0.1742 -0.1223)
OKLCHoklch(56.27% 0.213 324.9)
XYZxyz(27.6964, 15.3088, 46.8342)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37B8 #40B837
analogous
#6F37B8 #AF37B8 #B83781
triadic
#AF37B8 #B8AF37 #37B8AF
tetradic
#AF37B8 #B86F37 #40B837 #3781B8
square
#AF37B8 #B86F37 #40B837 #3781B8
split-complementary
#AF37B8 #81B837 #37B86F
monochromatic
#551B5A #822989 #AF37B8 #C75DCF #D78DDD

Accessibility & contrast

On white

5.17
#AF37B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF37B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37B8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37B8#FFFFFF#000000##FFFFFF
##AF37B81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1564BC
Deuteranopia (green-blind)
#5072B5
Tritanopia (blue-blind)
#B34C74
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af37b8;
/* rgb */ color: rgb(175, 55, 184);
/* oklch */ color: oklch(56.3% 0.213 324.9);
Tailwind
colors: {
  custom: {
    50: '#ca79ce',
    500: '#af37b8',
    950: '#000000',
  },
}
SCSS
$custom: #af37b8;
$custom-light: #ca79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af37b8",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 295.814,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56272,
    "c": 0.21289,
    "h": 324.9
  },
  "luminance": 0.15307
}

Semantic roles & 50–950 ramp

primary
#AF37B8
secondary
#88C784
accent
#DD4A55
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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