#AB31BC#AB31BC

#AB31BC is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.221 H 322.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AB31BC
RGBrgb(171, 49, 188)
HSLhsl(293, 59%, 46%)
HSVhsv(293, 74%, 74%)
CMYKcmyk(9%, 73.9%, 0%, 26.3%)
CIE-LABlab(44.92, 65.96, -48.16)
CIE-LCHlch(44.92, 81.67, 323.86°)
OKLaboklab(55.42% 0.1753 -0.1346)
OKLCHoklch(55.42% 0.221 322.5)
XYZxyz(26.9691, 14.4870, 48.9429)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31BC #42BC31
analogous
#6631BC #AB31BC #BC3188
triadic
#AB31BC #BCAB31 #31BCAB
tetradic
#AB31BC #BC6631 #42BC31 #3188BC
square
#AB31BC #BC6631 #42BC31 #3188BC
split-complementary
#AB31BC #88BC31 #31BC66
monochromatic
#53185B #7F248B #AB31BC #C457D3 #D588E0

Accessibility & contrast

On white

5.39
#AB31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AB31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31BC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31BC#FFFFFF#000000##FFFFFF
##AB31BC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#466FB9
Tritanopia (blue-blind)
#AD4B74
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab31bc;
/* rgb */ color: rgb(171, 49, 188);
/* oklch */ color: oklch(55.4% 0.221 322.5);
Tailwind
colors: {
  custom: {
    50: '#c876d1',
    500: '#ab31bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab31bc;
$custom-light: #c876d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31bc",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 292.662,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55416,
    "c": 0.22103,
    "h": 322.5
  },
  "luminance": 0.14485
}

Semantic roles & 50–950 ramp

primary
#AB31BC
secondary
#88CA7F
accent
#E24659
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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