#AB31B4#AB31B4

#AB31B4 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.215 H 325.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AB31B4
RGBrgb(171, 49, 180)
HSLhsl(296, 57%, 45%)
HSVhsv(296, 73%, 71%)
CMYKcmyk(5%, 72.8%, 0%, 29.4%)
CIE-LABlab(44.45, 64.56, -44.23)
CIE-LCHlch(44.45, 78.26, 325.59°)
OKLaboklab(54.93% 0.1757 -0.1231)
OKLCHoklch(54.93% 0.215 325)
XYZxyz(26.1305, 14.1515, 44.5264)
Luminance0.1415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31B4 #3AB431
analogous
#6A31B4 #AB31B4 #B4317B
triadic
#AB31B4 #B4AB31 #31B4AB
tetradic
#AB31B4 #B46A31 #3AB431 #317BB4
square
#AB31B4 #B46A31 #3AB431 #317BB4
split-complementary
#AB31B4 #7BB431 #31B46A
monochromatic
#501754 #7D2484 #AB31B4 #C752D0 #D782DD

Accessibility & contrast

On white

5.48
#AB31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AB31B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31B4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31B4#FFFFFF#000000##FFFFFF
##AB31B41.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0360B8
Deuteranopia (green-blind)
#4C6EB1
Tritanopia (blue-blind)
#AF4870
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab31b4;
/* rgb */ color: rgb(171, 49, 180);
/* oklch */ color: oklch(54.9% 0.215 325.0);
Tailwind
colors: {
  custom: {
    50: '#c875cb',
    500: '#ab31b4',
    950: '#000000',
  },
}
SCSS
$custom: #ab31b4;
$custom-light: #c875cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31b4",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 295.878,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54926,
    "c": 0.21455,
    "h": 325
  },
  "luminance": 0.1415
}

Semantic roles & 50–950 ramp

primary
#AB31B4
secondary
#80C67B
accent
#E04752
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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