#AB5BD4#AB5BD4

#AB5BD4 is a mid, vivid violet. Relative luminance 0.209; OKLCH L 61.6% C 0.188 H 312.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AB5BD4
RGBrgb(171, 91, 212)
HSLhsl(280, 58%, 59%)
HSVhsv(280, 57%, 83%)
CMYKcmyk(19.3%, 57.1%, 0%, 16.9%)
CIE-LABlab(52.83, 52.64, -49.38)
CIE-LCHlch(52.83, 72.18, 316.83°)
OKLaboklab(61.58% 0.1277 -0.1384)
OKLCHoklch(61.58% 0.188 312.7)
XYZxyz(32.4173, 20.8944, 64.5999)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5BD4 #84D45B
analogous
#6F5BD4 #AB5BD4 #D45BC1
triadic
#AB5BD4 #D4AB5B #5BD4AB
tetradic
#AB5BD4 #D46F5B #84D45B #5BC1D4
square
#AB5BD4 #D46F5B #84D45B #5BC1D4
split-complementary
#AB5BD4 #C1D45B #5BD46F
monochromatic
#6B268F #9032C0 #AB5BD4 #C48BE1 #DDBCED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB5BD4#FFFFFF#000000##000000
##AB5BD41.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)
#367AD8
Deuteranopia (green-blind)
#5480D1
Tritanopia (blue-blind)
#A7708F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5bd4;
/* rgb */ color: rgb(171, 91, 212);
/* oklch */ color: oklch(61.6% 0.188 312.7);
Tailwind
colors: {
  custom: {
    50: '#c78de2',
    500: '#ab5bd4',
    950: '#000000',
  },
}
SCSS
$custom: #ab5bd4;
$custom-light: #c78de2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5bd4",
  "rgb": {
    "r": 171,
    "g": 91,
    "b": 212
  },
  "hsl": {
    "h": 279.669,
    "s": 58.454,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61575,
    "c": 0.18832,
    "h": 312.7
  },
  "luminance": 0.20894
}

Semantic roles & 50–950 ramp

primary
#AB5BD4
secondary
#BEDDAE
accent
#E2467B
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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