#AF37B4#AF37B4

#AF37B4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.210 H 326.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF37B4
RGBrgb(175, 55, 180)
HSLhsl(298, 53%, 46%)
HSVhsv(298, 69%, 71%)
CMYKcmyk(2.8%, 69.4%, 0%, 29.4%)
CIE-LABlab(45.83, 63.32, -41.99)
CIE-LCHlch(45.83, 75.98, 326.45°)
OKLaboklab(56.04% 0.1743 -0.1165)
OKLCHoklch(56.04% 0.21 326.2)
XYZxyz(27.2831, 15.1434, 44.6571)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37B4 #3CB437
analogous
#7037B4 #AF37B4 #B4377A
triadic
#AF37B4 #B4AF37 #37B4AF
tetradic
#AF37B4 #B47037 #3CB437 #377AB4
square
#AF37B4 #B47037 #3CB437 #377AB4
split-complementary
#AF37B4 #7AB437 #37B470
monochromatic
#541A56 #812985 #AF37B4 #C85BCD #D88ADB

Accessibility & contrast

On white

5.21
#AF37B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF37B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37B4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37B4#FFFFFF#000000##FFFFFF
##AF37B41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D63B8
Deuteranopia (green-blind)
#5372B1
Tritanopia (blue-blind)
#B44A72
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af37b4;
/* rgb */ color: rgb(175, 55, 180);
/* oklch */ color: oklch(56.0% 0.210 326.2);
Tailwind
colors: {
  custom: {
    50: '#ca79cb',
    500: '#af37b4',
    950: '#000000',
  },
}
SCSS
$custom: #af37b4;
$custom-light: #ca79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af37b4",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 180
  },
  "hsl": {
    "h": 297.6,
    "s": 53.191,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56039,
    "c": 0.20964,
    "h": 326.2
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#AF37B4
secondary
#84C681
accent
#DD4B51
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37B4

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

Preview Lab → · Contrast checker → · Palette generator →

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