#AB5BD9#AB5BD9

#AB5BD9 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.9% C 0.194 H 311.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB5BD9
RGBrgb(171, 91, 217)
HSLhsl(278, 62%, 60%)
HSVhsv(278, 58%, 85%)
CMYKcmyk(21.2%, 58.1%, 0%, 14.9%)
CIE-LABlab(53.11, 53.72, -51.77)
CIE-LCHlch(53.11, 74.61, 316.06°)
OKLaboklab(61.87% 0.1278 -0.1454)
OKLCHoklch(61.87% 0.194 311.3)
XYZxyz(33.0578, 21.1506, 67.9732)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BD9 #89D95B
analogous
#6C5BD9 #AB5BD9 #D95BC8
triadic
#AB5BD9 #D9AB5B #5BD9AB
tetradic
#AB5BD9 #D96C5B #89D95B #5BC8D9
square
#AB5BD9 #D96C5B #89D95B #5BC8D9
split-complementary
#AB5BD9 #C8D95B #5BD96C
monochromatic
#6C2397 #902EC8 #AB5BD9 #C48DE5 #DEBEF0

Accessibility & contrast

On white

4.02
#AB5BD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AB5BD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BD9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BD9#FFFFFF#000000##000000
##AB5BD91.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#307BDD
Deuteranopia (green-blind)
#5180D6
Tritanopia (blue-blind)
#A67291
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5bd9;
/* rgb */ color: rgb(171, 91, 217);
/* oklch */ color: oklch(61.9% 0.194 311.3);
Tailwind
colors: {
  custom: {
    50: '#c78de5',
    500: '#ab5bd9',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bd9;
$custom-light: #c78de5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bd9",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 217
  },
  "hsl": {
    "h": 278.095,
    "s": 62.376,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6187,
    "c": 0.19362,
    "h": 311.3
  },
  "luminance": 0.2115
}

Semantic roles & 50–950 ramp

primary
#AB5BD9
secondary
#C1E0B0
accent
#CA1B5B
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB5BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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