#AF37B2#AF37B2

#AF37B2 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 55.9% C 0.208 H 326.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF37B2
RGBrgb(175, 55, 178)
HSLhsl(299, 53%, 46%)
HSVhsv(299, 69%, 70%)
CMYKcmyk(1.7%, 69.1%, 0%, 30.2%)
CIE-LABlab(45.72, 62.98, -40.99)
CIE-LCHlch(45.72, 75.14, 326.94°)
OKLaboklab(55.92% 0.1742 -0.1136)
OKLCHoklch(55.92% 0.208 326.9)
XYZxyz(27.0808, 15.0625, 43.5918)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF37B2 #3AB237
analogous
#7237B2 #AF37B2 #B23777
triadic
#AF37B2 #B2AF37 #37B2AF
tetradic
#AF37B2 #B27237 #3AB237 #3777B2
square
#AF37B2 #B27237 #3AB237 #3777B2
split-complementary
#AF37B2 #77B237 #37B272
monochromatic
#531A54 #812983 #AF37B2 #C95ACC #D989DB

Accessibility & contrast

On white

5.23
#AF37B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF37B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF37B2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF37B2#FFFFFF#000000##FFFFFF
##AF37B21.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#5472AF
Tritanopia (blue-blind)
#B44A71
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af37b2;
/* rgb */ color: rgb(175, 55, 178);
/* oklch */ color: oklch(55.9% 0.208 326.9);
Tailwind
colors: {
  custom: {
    50: '#ca79c9',
    500: '#af37b2',
    950: '#000000',
  },
}
SCSS
$custom: #af37b2;
$custom-light: #ca79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af37b2",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 298.537,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.20803,
    "h": 326.9
  },
  "luminance": 0.15061
}

Semantic roles & 50–950 ramp

primary
#AF37B2
secondary
#82C580
accent
#DC4C4F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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