#AB31C8#AB31C8

#AB31C8 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.2% C 0.231 H 319.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AB31C8
RGBrgb(171, 49, 200)
HSLhsl(288, 61%, 49%)
HSVhsv(288, 76%, 78%)
CMYKcmyk(14.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(45.67, 68.12, -53.95)
CIE-LCHlch(45.67, 86.90, 321.62°)
OKLaboklab(56.18% 0.1742 -0.1515)
OKLCHoklch(56.18% 0.231 319)
XYZxyz(28.3168, 15.0261, 56.0411)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31C8 #4EC831
analogous
#6031C8 #AB31C8 #C8319A
triadic
#AB31C8 #C8AB31 #31C8AB
tetradic
#AB31C8 #C86031 #4EC831 #319AC8
square
#AB31C8 #C86031 #4EC831 #319AC8
split-complementary
#AB31C8 #9AC831 #31C860
monochromatic
#571966 #812597 #AB31C8 #C05FD8 #D490E4

Accessibility & contrast

On white

5.24
#AB31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AB31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31C8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31C8#FFFFFF#000000##FFFFFF
##AB31C81.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#3B70C5
Tritanopia (blue-blind)
#AB517B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab31c8;
/* rgb */ color: rgb(171, 49, 200);
/* oklch */ color: oklch(56.2% 0.231 319.0);
Tailwind
colors: {
  custom: {
    50: '#c876d9',
    500: '#ab31c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab31c8;
$custom-light: #c876d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31c8",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 288.477,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56185,
    "c": 0.23092,
    "h": 319
  },
  "luminance": 0.15025
}

Semantic roles & 50–950 ramp

primary
#AB31C8
secondary
#94CE86
accent
#E44463
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140915
muted
#827B83

Preview Lab

Preview with #AB31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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