#AB31B5#AB31B5

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

Color values

HEX#AB31B5
RGBrgb(171, 49, 181)
HSLhsl(295, 57%, 45%)
HSVhsv(295, 73%, 71%)
CMYKcmyk(5.5%, 72.9%, 0%, 29%)
CIE-LABlab(44.51, 64.73, -44.72)
CIE-LCHlch(44.51, 78.68, 325.36°)
OKLaboklab(54.99% 0.1757 -0.1246)
OKLCHoklch(54.99% 0.215 324.7)
XYZxyz(26.2327, 14.1924, 45.0648)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31B5 #3BB531
analogous
#6931B5 #AB31B5 #B5317D
triadic
#AB31B5 #B5AB31 #31B5AB
tetradic
#AB31B5 #B56931 #3BB531 #317DB5
square
#AB31B5 #B56931 #3BB531 #317DB5
split-complementary
#AB31B5 #7DB531 #31B569
monochromatic
#501755 #7D2485 #AB31B5 #C753D0 #D783DD

Accessibility & contrast

On white

5.47
#AB31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AB31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31B5
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31B5#FFFFFF#000000##FFFFFF
##AB31B51.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#4B6EB2
Tritanopia (blue-blind)
#AF4871
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab31b5;
/* rgb */ color: rgb(171, 49, 181);
/* oklch */ color: oklch(55.0% 0.215 324.7);
Tailwind
colors: {
  custom: {
    50: '#c875cc',
    500: '#ab31b5',
    950: '#000000',
  },
}
SCSS
$custom: #ab31b5;
$custom-light: #c875cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31b5",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 295.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54986,
    "c": 0.21536,
    "h": 324.7
  },
  "luminance": 0.14191
}

Semantic roles & 50–950 ramp

primary
#AB31B5
secondary
#81C77B
accent
#E14753
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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