#AB31B3#AB31B3

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

Color values

HEX#AB31B3
RGBrgb(171, 49, 179)
HSLhsl(296, 57%, 45%)
HSVhsv(296, 73%, 70%)
CMYKcmyk(4.5%, 72.6%, 0%, 29.8%)
CIE-LABlab(44.39, 64.39, -43.73)
CIE-LCHlch(44.39, 77.83, 325.82°)
OKLaboklab(54.87% 0.1757 -0.1217)
OKLCHoklch(54.87% 0.214 325.3)
XYZxyz(26.0290, 14.1109, 43.9918)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB31B3 #39B331
analogous
#6A31B3 #AB31B3 #B3317A
triadic
#AB31B3 #B3AB31 #31B3AB
tetradic
#AB31B3 #B36A31 #39B331 #317AB3
square
#AB31B3 #B36A31 #39B331 #317AB3
split-complementary
#AB31B3 #7AB331 #31B36A
monochromatic
#4F1753 #7D2483 #AB31B3 #C852D0 #D782DD

Accessibility & contrast

On white

5.49
#AB31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AB31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB31B3
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB31B3#FFFFFF#000000##FFFFFF
##AB31B31.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075FB7
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#AF476F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ab31b3;
/* rgb */ color: rgb(171, 49, 179);
/* oklch */ color: oklch(54.9% 0.214 325.3);
Tailwind
colors: {
  custom: {
    50: '#c875ca',
    500: '#ab31b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab31b3;
$custom-light: #c875ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab31b3",
  "rgb": {
    "r": 171,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 296.308,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54866,
    "c": 0.21374,
    "h": 325.3
  },
  "luminance": 0.14109
}

Semantic roles & 50–950 ramp

primary
#AB31B3
secondary
#7FC67A
accent
#E04851
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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