#AF37B5#AF37B5

#AF37B5 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.210 H 325.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF37B5
RGBrgb(175, 55, 181)
HSLhsl(297, 53%, 46%)
HSVhsv(297, 70%, 71%)
CMYKcmyk(3.3%, 69.6%, 0%, 29%)
CIE-LABlab(45.89, 63.49, -42.49)
CIE-LCHlch(45.89, 76.40, 326.21°)
OKLaboklab(56.1% 0.1743 -0.118)
OKLCHoklch(56.1% 0.21 325.9)
XYZxyz(27.3853, 15.1843, 45.1956)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37B5 #3DB537
analogous
#7037B5 #AF37B5 #B5377C
triadic
#AF37B5 #B5AF37 #37B5AF
tetradic
#AF37B5 #B57037 #3DB537 #377CB5
square
#AF37B5 #B57037 #3DB537 #377CB5
split-complementary
#AF37B5 #7CB537 #37B570
monochromatic
#541A57 #822986 #AF37B5 #C85CCD #D88BDC

Accessibility & contrast

On white

5.20
#AF37B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AF37B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37B5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37B5#FFFFFF#000000##FFFFFF
##AF37B51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B63B9
Deuteranopia (green-blind)
#5272B2
Tritanopia (blue-blind)
#B34B72
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af37b5;
/* rgb */ color: rgb(175, 55, 181);
/* oklch */ color: oklch(56.1% 0.210 325.9);
Tailwind
colors: {
  custom: {
    50: '#ca79cc',
    500: '#af37b5',
    950: '#000000',
  },
}
SCSS
$custom: #af37b5;
$custom-light: #ca79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af37b5",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 181
  },
  "hsl": {
    "h": 297.143,
    "s": 53.39,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56097,
    "c": 0.21046,
    "h": 325.9
  },
  "luminance": 0.15183
}

Semantic roles & 50–950 ramp

primary
#AF37B5
secondary
#85C682
accent
#DD4B52
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37B5

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

Preview Lab → · Contrast checker → · Palette generator →

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