#AC31BA#AC31BA

#AC31BA is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.220 H 323.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AC31BA
RGBrgb(172, 49, 186)
HSLhsl(294, 58%, 46%)
HSVhsv(294, 74%, 73%)
CMYKcmyk(7.5%, 73.7%, 0%, 27.1%)
CIE-LABlab(44.96, 65.81, -46.92)
CIE-LCHlch(44.96, 80.83, 324.51°)
OKLaboklab(55.44% 0.1766 -0.1309)
OKLCHoklch(55.44% 0.22 323.4)
XYZxyz(26.9737, 14.5141, 47.8256)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31BA #3FBA31
analogous
#6731BA #AC31BA #BA3183
triadic
#AC31BA #BAAC31 #31BAAC
tetradic
#AC31BA #BA6731 #3FBA31 #3183BA
square
#AC31BA #BA6731 #3FBA31 #3183BA
split-complementary
#AC31BA #83BA31 #31BA67
monochromatic
#521759 #7F248A #AC31BA #C656D2 #D686DF

Accessibility & contrast

On white

5.38
#AC31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AC31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC31BA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31BA#FFFFFF#000000##FFFFFF
##AC31BA1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#496FB7
Tritanopia (blue-blind)
#AF4A73
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ac31ba;
/* rgb */ color: rgb(172, 49, 186);
/* oklch */ color: oklch(55.4% 0.220 323.4);
Tailwind
colors: {
  custom: {
    50: '#c976cf',
    500: '#ac31ba',
    950: '#000000',
  },
}
SCSS
$custom: #ac31ba;
$custom-light: #c976cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31ba",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 293.869,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55436,
    "c": 0.21983,
    "h": 323.4
  },
  "luminance": 0.14512
}

Semantic roles & 50–950 ramp

primary
#AC31BA
secondary
#86C97E
accent
#E24656
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AC31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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