#AB31B8#AB31B8

#AB31B8 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.218 H 323.7°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AB31B8
RGBrgb(171, 49, 184)
HSLhsl(294, 58%, 46%)
HSVhsv(294, 73%, 72%)
CMYKcmyk(7.1%, 73.4%, 0%, 27.8%)
CIE-LABlab(44.68, 65.25, -46.20)
CIE-LCHlch(44.68, 79.96, 324.70°)
OKLaboklab(55.17% 0.1756 -0.1289)
OKLCHoklch(55.17% 0.218 323.7)
XYZxyz(26.5439, 14.3169, 46.7034)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31B8 #3EB831
analogous
#6731B8 #AB31B8 #B83181
triadic
#AB31B8 #B8AB31 #31B8AB
tetradic
#AB31B8 #B86731 #3EB831 #3181B8
square
#AB31B8 #B86731 #3EB831 #3181B8
split-complementary
#AB31B8 #81B831 #31B867
monochromatic
#511757 #7E2488 #AB31B8 #C655D2 #D685DE

Accessibility & contrast

On white

5.44
#AB31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AB31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31B8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31B8#FFFFFF#000000##FFFFFF
##AB31B81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#496FB5
Tritanopia (blue-blind)
#AE4972
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab31b8;
/* rgb */ color: rgb(171, 49, 184);
/* oklch */ color: oklch(55.2% 0.218 323.7);
Tailwind
colors: {
  custom: {
    50: '#c876ce',
    500: '#ab31b8',
    950: '#000000',
  },
}
SCSS
$custom: #ab31b8;
$custom-light: #c876ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31b8",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 294.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55169,
    "c": 0.21778,
    "h": 323.7
  },
  "luminance": 0.14315
}

Semantic roles & 50–950 ramp

primary
#AB31B8
secondary
#84C87D
accent
#E14756
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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