#AB5BDB#AB5BDB

#AB5BDB is a mid, vivid violet. Relative luminance 0.213; OKLCH L 62.0% C 0.196 H 310.8°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB5BDB
RGBrgb(171, 91, 219)
HSLhsl(278, 64%, 61%)
HSVhsv(278, 58%, 86%)
CMYKcmyk(21.9%, 58.4%, 0%, 14.1%)
CIE-LABlab(53.23, 54.16, -52.72)
CIE-LCHlch(53.23, 75.58, 315.77°)
OKLaboklab(61.99% 0.1279 -0.1482)
OKLCHoklch(61.99% 0.196 310.8)
XYZxyz(33.3195, 21.2553, 69.3515)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BDB #8BDB5B
analogous
#6B5BDB #AB5BDB #DB5BCB
triadic
#AB5BDB #DBAB5B #5BDBAB
tetradic
#AB5BDB #DB6B5B #8BDB5B #5BCBDB
square
#AB5BDB #DB6B5B #8BDB5B #5BCBDB
split-complementary
#AB5BDB #CBDB5B #5BDB6B
monochromatic
#6D229A #902DCC #AB5BDB #C58DE6 #DEBFF1

Accessibility & contrast

On white

4.00
#AB5BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AB5BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5BDB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5BDB#FFFFFF#000000##000000
##AB5BDB1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7BDF
Deuteranopia (green-blind)
#4F81D8
Tritanopia (blue-blind)
#A57392
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5bdb;
/* rgb */ color: rgb(171, 91, 219);
/* oklch */ color: oklch(62.0% 0.196 310.8);
Tailwind
colors: {
  custom: {
    50: '#c78de7',
    500: '#ab5bdb',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bdb;
$custom-light: #c78de7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bdb",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 219
  },
  "hsl": {
    "h": 277.5,
    "s": 64,
    "l": 60.784
  },
  "oklch": {
    "l": 0.6199,
    "c": 0.19574,
    "h": 310.8
  },
  "luminance": 0.21255
}

Semantic roles & 50–950 ramp

primary
#AB5BDB
secondary
#C3E1B1
accent
#CC1A5C
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB5BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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