#AB31B6#AB31B6

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

Color values

HEX#AB31B6
RGBrgb(171, 49, 182)
HSLhsl(295, 58%, 45%)
HSVhsv(295, 73%, 71%)
CMYKcmyk(6%, 73.1%, 0%, 28.6%)
CIE-LABlab(44.57, 64.91, -45.22)
CIE-LCHlch(44.57, 79.10, 325.14°)
OKLaboklab(55.05% 0.1756 -0.126)
OKLCHoklch(55.05% 0.216 324.3)
XYZxyz(26.3357, 14.2336, 45.6071)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31B6 #3CB631
analogous
#6931B6 #AB31B6 #B6317E
triadic
#AB31B6 #B6AB31 #31B6AB
tetradic
#AB31B6 #B66931 #3CB631 #317EB6
square
#AB31B6 #B66931 #3CB631 #317EB6
split-complementary
#AB31B6 #7EB631 #31B669
monochromatic
#501756 #7E2486 #AB31B6 #C653D1 #D684DE

Accessibility & contrast

On white

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

On black

3.85
#AB31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB31B6#FFFFFF#000000##FFFFFF
##AB31B61.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#4A6EB3
Tritanopia (blue-blind)
#AE4871
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab31b6;
/* rgb */ color: rgb(171, 49, 182);
/* oklch */ color: oklch(55.0% 0.216 324.3);
Tailwind
colors: {
  custom: {
    50: '#c876cc',
    500: '#ab31b6',
    950: '#000000',
  },
}
SCSS
$custom: #ab31b6;
$custom-light: #c876cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31b6",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 295.038,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55047,
    "c": 0.21616,
    "h": 324.3
  },
  "luminance": 0.14232
}

Semantic roles & 50–950 ramp

primary
#AB31B6
secondary
#82C77C
accent
#E14754
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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