#AF37BA#AF37BA

#AF37BA is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.215 H 324.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF37BA
RGBrgb(175, 55, 186)
HSLhsl(295, 54%, 47%)
HSVhsv(295, 70%, 73%)
CMYKcmyk(5.9%, 70.4%, 0%, 27.1%)
CIE-LABlab(46.17, 64.36, -44.97)
CIE-LCHlch(46.17, 78.52, 325.06°)
OKLaboklab(56.39% 0.1742 -0.1252)
OKLCHoklch(56.39% 0.215 324.3)
XYZxyz(27.9076, 15.3932, 47.9461)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37BA #42BA37
analogous
#6E37BA #AF37BA #BA3783
triadic
#AF37BA #BAAF37 #37BAAF
tetradic
#AF37BA #BA6E37 #42BA37 #3783BA
square
#AF37BA #BA6E37 #42BA37 #3783BA
split-complementary
#AF37BA #83BA37 #37BA6E
monochromatic
#561B5C #83298B #AF37BA #C65FD0 #D78EDE

Accessibility & contrast

On white

5.15
#AF37BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF37BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37BA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37BA#FFFFFF#000000##FFFFFF
##AF37BA1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F64BE
Deuteranopia (green-blind)
#4F72B7
Tritanopia (blue-blind)
#B24D75
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af37ba;
/* rgb */ color: rgb(175, 55, 186);
/* oklch */ color: oklch(56.4% 0.215 324.3);
Tailwind
colors: {
  custom: {
    50: '#cb79cf',
    500: '#af37ba',
    950: '#000000',
  },
}
SCSS
$custom: #af37ba;
$custom-light: #cb79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af37ba",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 294.962,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.21454,
    "h": 324.3
  },
  "luminance": 0.15392
}

Semantic roles & 50–950 ramp

primary
#AF37BA
secondary
#8AC885
accent
#DE4A56
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A14
muted
#827C82

Preview Lab

Preview with #AF37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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