#AF32B1#AF32B1

#AF32B1 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.213 H 327.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF32B1
RGBrgb(175, 50, 177)
HSLhsl(299, 56%, 45%)
HSVhsv(299, 72%, 69%)
CMYKcmyk(1.1%, 71.8%, 0%, 30.6%)
CIE-LABlab(45.04, 64.58, -41.48)
CIE-LCHlch(45.04, 76.75, 327.29°)
OKLaboklab(55.42% 0.1792 -0.115)
OKLCHoklch(55.42% 0.213 327.3)
XYZxyz(26.7552, 14.5714, 42.9898)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF32B1 #34B132
analogous
#7032B1 #AF32B1 #B13274
triadic
#AF32B1 #B1AF32 #32B1AF
tetradic
#AF32B1 #B17032 #34B132 #3274B1
square
#AF32B1 #B17032 #34B132 #3274B1
split-complementary
#AF32B1 #74B132 #32B170
monochromatic
#511752 #802581 #AF32B1 #CC52CE #DA82DC

Accessibility & contrast

On white

5.37
#AF32B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF32B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF32B1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF32B1#FFFFFF#000000##FFFFFF
##AF32B11.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1760B5
Deuteranopia (green-blind)
#5270AE
Tritanopia (blue-blind)
#B4466F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af32b1;
/* rgb */ color: rgb(175, 50, 177);
/* oklch */ color: oklch(55.4% 0.213 327.3);
Tailwind
colors: {
  custom: {
    50: '#cb76c9',
    500: '#af32b1',
    950: '#000000',
  },
}
SCSS
$custom: #af32b1;
$custom-light: #cb76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af32b1",
  "rgb": {
    "r": 175,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 299.055,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5542,
    "c": 0.21295,
    "h": 327.3
  },
  "luminance": 0.14569
}

Semantic roles & 50–950 ramp

primary
#AF32B1
secondary
#7BC57A
accent
#DF494B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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