#AB31BB#AB31BB

#AB31BB is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.220 H 322.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AB31BB
RGBrgb(171, 49, 187)
HSLhsl(293, 58%, 46%)
HSVhsv(293, 74%, 73%)
CMYKcmyk(8.6%, 73.8%, 0%, 26.7%)
CIE-LABlab(44.86, 65.78, -47.68)
CIE-LCHlch(44.86, 81.24, 324.07°)
OKLaboklab(55.35% 0.1754 -0.1332)
OKLCHoklch(55.35% 0.22 322.8)
XYZxyz(26.8617, 14.4440, 48.3772)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31BB #41BB31
analogous
#6631BB #AB31BB #BB3186
triadic
#AB31BB #BBAB31 #31BBAB
tetradic
#AB31BB #BB6631 #41BB31 #3186BB
square
#AB31BB #BB6631 #41BB31 #3186BB
split-complementary
#AB31BB #86BB31 #31BB66
monochromatic
#52185A #7F248B #AB31BB #C456D3 #D587E0

Accessibility & contrast

On white

5.40
#AB31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AB31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31BB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31BB#FFFFFF#000000##FFFFFF
##AB31BB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#AD4B74
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab31bb;
/* rgb */ color: rgb(171, 49, 187);
/* oklch */ color: oklch(55.4% 0.220 322.8);
Tailwind
colors: {
  custom: {
    50: '#c876d0',
    500: '#ab31bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab31bb;
$custom-light: #c876d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31bb",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 293.043,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55354,
    "c": 0.22022,
    "h": 322.8
  },
  "luminance": 0.14442
}

Semantic roles & 50–950 ramp

primary
#AB31BB
secondary
#87C97F
accent
#E24658
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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