#AB31DB#AB31DB

#AB31DB is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.5% C 0.247 H 314.0°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AB31DB
RGBrgb(171, 49, 219)
HSLhsl(283, 70%, 53%)
HSVhsv(283, 78%, 86%)
CMYKcmyk(21.9%, 77.6%, 0%, 14.1%)
CIE-LABlab(46.94, 71.70, -62.84)
CIE-LCHlch(46.94, 95.34, 318.77°)
OKLaboklab(57.48% 0.1714 -0.1776)
OKLCHoklch(57.48% 0.247 314)
XYZxyz(30.6769, 15.9701, 68.4707)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31DB #61DB31
analogous
#5631DB #AB31DB #DB31B6
triadic
#AB31DB #DBAB31 #31DBAB
tetradic
#AB31DB #DB5631 #61DB31 #31B6DB
square
#AB31DB #DB5631 #61DB31 #31B6DB
split-complementary
#AB31DB #B6DB31 #31DB56
monochromatic
#5F167C #871FB0 #AB31DB #C065E4 #D599ED

Accessibility & contrast

On white

5.01
#AB31DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AB31DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31DB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31DB#FFFFFF#000000##FFFFFF
##AB31DB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#2072D7
Tritanopia (blue-blind)
#A65A86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab31db;
/* rgb */ color: rgb(171, 49, 219);
/* oklch */ color: oklch(57.5% 0.247 314.0);
Tailwind
colors: {
  custom: {
    50: '#c977e7',
    500: '#ab31db',
    950: '#000000',
  },
}
SCSS
$custom: #ab31db;
$custom-light: #c977e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31db",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 219
  },
  "hsl": {
    "h": 283.059,
    "s": 70.248,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57479,
    "c": 0.24686,
    "h": 314
  },
  "luminance": 0.15969
}

Semantic roles & 50–950 ramp

primary
#AB31DB
secondary
#A4D98F
accent
#ED3B6D
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AB31DB

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

Preview Lab → · Contrast checker → · Palette generator →

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