#AB5DCE#AB5DCE

#AB5DCE is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.5% C 0.179 H 314.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AB5DCE
RGBrgb(171, 93, 206)
HSLhsl(281, 54%, 59%)
HSVhsv(281, 55%, 81%)
CMYKcmyk(17%, 54.9%, 0%, 19.2%)
CIE-LABlab(52.89, 50.35, -45.87)
CIE-LCHlch(52.89, 68.11, 317.67°)
OKLaboklab(61.51% 0.1248 -0.1282)
OKLCHoklch(61.51% 0.179 314.2)
XYZxyz(31.8477, 20.9438, 60.7454)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DCE #80CE5D
analogous
#725DCE #AB5DCE #CE5DB8
triadic
#AB5DCE #CEAB5D #5DCEAB
tetradic
#AB5DCE #CE725D #80CE5D #5DB8CE
square
#AB5DCE #CE725D #80CE5D #5DB8CE
split-complementary
#AB5DCE #B8CE5D #5DCE72
monochromatic
#6A2988 #8F37B7 #AB5DCE #C38CDC #DCBBEA

Accessibility & contrast

On white

4.05
#AB5DCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AB5DCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DCE
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DCE#FFFFFF#000000##000000
##AB5DCE1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#407AD2
Deuteranopia (green-blind)
#5A80CB
Tritanopia (blue-blind)
#A8708D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5dce;
/* rgb */ color: rgb(171, 93, 206);
/* oklch */ color: oklch(61.5% 0.179 314.2);
Tailwind
colors: {
  custom: {
    50: '#c78edd',
    500: '#ab5dce',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dce;
$custom-light: #c78edd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dce",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 206
  },
  "hsl": {
    "h": 281.416,
    "s": 53.555,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61509,
    "c": 0.17891,
    "h": 314.2
  },
  "luminance": 0.20943
}

Semantic roles & 50–950 ramp

primary
#AB5DCE
secondary
#BBDAAD
accent
#DD4B78
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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