#AB5DCD#AB5DCD

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

Color values

HEX#AB5DCD
RGBrgb(171, 93, 205)
HSLhsl(282, 53%, 58%)
HSVhsv(282, 55%, 80%)
CMYKcmyk(16.6%, 54.6%, 0%, 19.6%)
CIE-LABlab(52.83, 50.14, -45.39)
CIE-LCHlch(52.83, 67.63, 317.85°)
OKLaboklab(61.45% 0.1247 -0.1268)
OKLCHoklch(61.45% 0.178 314.5)
XYZxyz(31.7266, 20.8953, 60.1077)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5DCD #7FCD5D
analogous
#735DCD #AB5DCD #CD5DB7
triadic
#AB5DCD #CDAB5D #5DCDAB
tetradic
#AB5DCD #CD735D #7FCD5D #5DB7CD
square
#AB5DCD #CD735D #7FCD5D #5DB7CD
split-complementary
#AB5DCD #B7CD5D #5DCD73
monochromatic
#6A2986 #8F38B5 #AB5DCD #C38CDB #DBBBEA

Accessibility & contrast

On white

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

On black

5.18
#AB5DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5DCD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5DCD#FFFFFF#000000##000000
##AB5DCD1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#417AD1
Deuteranopia (green-blind)
#5B80CA
Tritanopia (blue-blind)
#A86F8C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5dcd;
/* rgb */ color: rgb(171, 93, 205);
/* oklch */ color: oklch(61.5% 0.178 314.5);
Tailwind
colors: {
  custom: {
    50: '#c68edd',
    500: '#ab5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #ab5dcd;
$custom-light: #c68edd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5dcd",
  "rgb": {
    "r": 171,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 281.786,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61452,
    "c": 0.17785,
    "h": 314.5
  },
  "luminance": 0.20894
}

Semantic roles & 50–950 ramp

primary
#AB5DCD
secondary
#BAD9AD
accent
#DC4C77
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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