#AC31B2#AC31B2

#AC31B2 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.213 H 326.0°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AC31B2
RGBrgb(172, 49, 178)
HSLhsl(297, 57%, 45%)
HSVhsv(297, 72%, 70%)
CMYKcmyk(3.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(44.49, 64.43, -42.97)
CIE-LCHlch(44.49, 77.44, 326.30°)
OKLaboklab(54.95% 0.1769 -0.1194)
OKLCHoklch(54.95% 0.213 326)
XYZxyz(26.1469, 14.1834, 43.4713)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31B2 #37B231
analogous
#6B31B2 #AC31B2 #B23178
triadic
#AC31B2 #B2AC31 #31B2AC
tetradic
#AC31B2 #B26B31 #37B231 #3178B2
square
#AC31B2 #B26B31 #37B231 #3178B2
split-complementary
#AC31B2 #78B231 #31B26B
monochromatic
#4F1752 #7E2482 #AC31B2 #C951CF #D881DC

Accessibility & contrast

On white

5.47
#AC31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AC31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31B2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31B2#FFFFFF#000000##FFFFFF
##AC31B21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5FB6
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#B0466F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ac31b2;
/* rgb */ color: rgb(172, 49, 178);
/* oklch */ color: oklch(55.0% 0.213 326.0);
Tailwind
colors: {
  custom: {
    50: '#c875c9',
    500: '#ac31b2',
    950: '#000000',
  },
}
SCSS
$custom: #ac31b2;
$custom-light: #c875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31b2",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 297.209,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54953,
    "c": 0.21341,
    "h": 326
  },
  "luminance": 0.14182
}

Semantic roles & 50–950 ramp

primary
#AC31B2
secondary
#7DC579
accent
#E0484F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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