#AF37BC#AF37BC

#AF37BC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.216 H 323.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF37BC
RGBrgb(175, 55, 188)
HSLhsl(294, 55%, 48%)
HSVhsv(294, 71%, 74%)
CMYKcmyk(6.9%, 70.7%, 0%, 26.3%)
CIE-LABlab(46.28, 64.71, -45.96)
CIE-LCHlch(46.28, 79.37, 324.62°)
OKLaboklab(56.51% 0.1742 -0.1281)
OKLCHoklch(56.51% 0.216 323.7)
XYZxyz(28.1217, 15.4789, 49.0737)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37BC #44BC37
analogous
#6C37BC #AF37BC #BC3787
triadic
#AF37BC #BCAF37 #37BCAF
tetradic
#AF37BC #BC6C37 #44BC37 #3787BC
square
#AF37BC #BC6C37 #44BC37 #3787BC
split-complementary
#AF37BC #87BC37 #37BC6C
monochromatic
#571B5D #83298D #AF37BC #C560D0 #D78FDE

Accessibility & contrast

On white

5.13
#AF37BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF37BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37BC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37BC#FFFFFF#000000##FFFFFF
##AF37BC1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0865C0
Deuteranopia (green-blind)
#4E72B9
Tritanopia (blue-blind)
#B24E76
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af37bc;
/* rgb */ color: rgb(175, 55, 188);
/* oklch */ color: oklch(56.5% 0.216 323.7);
Tailwind
colors: {
  custom: {
    50: '#cb79d1',
    500: '#af37bc',
    950: '#000000',
  },
}
SCSS
$custom: #af37bc;
$custom-light: #cb79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af37bc",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 294.135,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5651,
    "c": 0.21619,
    "h": 323.7
  },
  "luminance": 0.15477
}

Semantic roles & 50–950 ramp

primary
#AF37BC
secondary
#8CC986
accent
#DE4A58
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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