#AC31B5#AC31B5

#AC31B5 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.216 H 325.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AC31B5
RGBrgb(172, 49, 181)
HSLhsl(296, 57%, 45%)
HSVhsv(296, 73%, 71%)
CMYKcmyk(5%, 72.9%, 0%, 29%)
CIE-LABlab(44.67, 64.94, -44.46)
CIE-LCHlch(44.67, 78.70, 325.61°)
OKLaboklab(55.13% 0.1768 -0.1238)
OKLCHoklch(55.13% 0.216 325)
XYZxyz(26.4514, 14.3052, 45.0751)
Luminance0.1430 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31B5 #3AB531
analogous
#6A31B5 #AC31B5 #B5317C
triadic
#AC31B5 #B5AC31 #31B5AC
tetradic
#AC31B5 #B56A31 #3AB531 #317CB5
square
#AC31B5 #B56A31 #3AB531 #317CB5
split-complementary
#AC31B5 #7CB531 #31B56A
monochromatic
#501755 #7E2485 #AC31B5 #C853D0 #D783DD

Accessibility & contrast

On white

5.44
#AC31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AC31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31B5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31B5#FFFFFF#000000##FFFFFF
##AC31B51.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0260B9
Deuteranopia (green-blind)
#4C6FB2
Tritanopia (blue-blind)
#B04871
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ac31b5;
/* rgb */ color: rgb(172, 49, 181);
/* oklch */ color: oklch(55.1% 0.216 325.0);
Tailwind
colors: {
  custom: {
    50: '#c876cc',
    500: '#ac31b5',
    950: '#000000',
  },
}
SCSS
$custom: #ac31b5;
$custom-light: #c876cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31b5",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 295.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55132,
    "c": 0.2158,
    "h": 325
  },
  "luminance": 0.14303
}

Semantic roles & 50–950 ramp

primary
#AC31B5
secondary
#80C77B
accent
#E14752
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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