#AB31CA#AB31CA

#AB31CA is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.233 H 318.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AB31CA
RGBrgb(171, 49, 202)
HSLhsl(288, 61%, 49%)
HSVhsv(288, 76%, 79%)
CMYKcmyk(15.3%, 75.7%, 0%, 20.8%)
CIE-LABlab(45.80, 68.49, -54.90)
CIE-LCHlch(45.80, 87.78, 321.28°)
OKLaboklab(56.32% 0.174 -0.1543)
OKLCHoklch(56.32% 0.233 318.4)
XYZxyz(28.5521, 15.1202, 57.2802)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31CA #50CA31
analogous
#5F31CA #AB31CA #CA319D
triadic
#AB31CA #CAAB31 #31CAAB
tetradic
#AB31CA #CA5F31 #50CA31 #319DCA
square
#AB31CA #CA5F31 #50CA31 #319DCA
split-complementary
#AB31CA #9DCA31 #31CA5F
monochromatic
#581967 #812599 #AB31CA #C060D8 #D391E4

Accessibility & contrast

On white

5.22
#AB31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#AB31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31CA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31CA#FFFFFF#000000##FFFFFF
##AB31CA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#3970C7
Tritanopia (blue-blind)
#AA527C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab31ca;
/* rgb */ color: rgb(171, 49, 202);
/* oklch */ color: oklch(56.3% 0.233 318.4);
Tailwind
colors: {
  custom: {
    50: '#c876db',
    500: '#ab31ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab31ca;
$custom-light: #c876db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31ca",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 287.843,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56317,
    "c": 0.23258,
    "h": 318.4
  },
  "luminance": 0.15119
}

Semantic roles & 50–950 ramp

primary
#AB31CA
secondary
#96CF88
accent
#E44464
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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