#AC31B3#AC31B3

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

Color values

HEX#AC31B3
RGBrgb(172, 49, 179)
HSLhsl(297, 57%, 45%)
HSVhsv(297, 73%, 70%)
CMYKcmyk(3.9%, 72.6%, 0%, 29.8%)
CIE-LABlab(44.55, 64.60, -43.47)
CIE-LCHlch(44.55, 77.86, 326.07°)
OKLaboklab(55.01% 0.1769 -0.1209)
OKLCHoklch(55.01% 0.214 325.7)
XYZxyz(26.2477, 14.2237, 44.0020)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC31B3 #38B331
analogous
#6B31B3 #AC31B3 #B33179
triadic
#AC31B3 #B3AC31 #31B3AC
tetradic
#AC31B3 #B36B31 #38B331 #3179B3
square
#AC31B3 #B36B31 #38B331 #3179B3
split-complementary
#AC31B3 #79B331 #31B36B
monochromatic
#501753 #7E2483 #AC31B3 #C952D0 #D882DD

Accessibility & contrast

On white

5.46
#AC31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC31B3
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC31B3#FFFFFF#000000##FFFFFF
##AC31B31.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0960B7
Deuteranopia (green-blind)
#4E6FB0
Tritanopia (blue-blind)
#B0476F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ac31b3;
/* rgb */ color: rgb(172, 49, 179);
/* oklch */ color: oklch(55.0% 0.214 325.7);
Tailwind
colors: {
  custom: {
    50: '#c876ca',
    500: '#ac31b3',
    950: '#000000',
  },
}
SCSS
$custom: #ac31b3;
$custom-light: #c876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ac31b3",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 296.769,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55012,
    "c": 0.2142,
    "h": 325.7
  },
  "luminance": 0.14222
}

Semantic roles & 50–950 ramp

primary
#AC31B3
secondary
#7EC67A
accent
#E04850
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AC31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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