#AB5CD6#AB5CD6

#AB5CD6 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.8% C 0.189 H 312.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB5CD6
RGBrgb(171, 92, 214)
HSLhsl(279, 60%, 60%)
HSVhsv(279, 57%, 84%)
CMYKcmyk(20.1%, 57%, 0%, 16.1%)
CIE-LABlab(53.13, 52.57, -50.04)
CIE-LCHlch(53.13, 72.58, 316.41°)
OKLaboklab(61.83% 0.1265 -0.1403)
OKLCHoklch(61.83% 0.189 312)
XYZxyz(32.7572, 21.1680, 65.9655)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CD6 #87D65C
analogous
#6E5CD6 #AB5CD6 #D65CC4
triadic
#AB5CD6 #D6AB5C #5CD6AB
tetradic
#AB5CD6 #D66E5C #87D65C #5CC4D6
square
#AB5CD6 #D66E5C #87D65C #5CC4D6
split-complementary
#AB5CD6 #C4D65C #5CD66E
monochromatic
#6C2593 #9031C4 #AB5CD6 #C48DE2 #DDBEEF

Accessibility & contrast

On white

4.01
#AB5CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB5CD6#FFFFFF#000000##000000
##AB5CD61.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#367BDA
Deuteranopia (green-blind)
#5481D3
Tritanopia (blue-blind)
#A67290
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5cd6;
/* rgb */ color: rgb(171, 92, 214);
/* oklch */ color: oklch(61.8% 0.189 312.0);
Tailwind
colors: {
  custom: {
    50: '#c78ee3',
    500: '#ab5cd6',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cd6;
$custom-light: #c78ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cd6",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 214
  },
  "hsl": {
    "h": 278.852,
    "s": 59.804,
    "l": 60
  },
  "oklch": {
    "l": 0.61829,
    "c": 0.18895,
    "h": 312
  },
  "luminance": 0.21167
}

Semantic roles & 50–950 ramp

primary
#AB5CD6
secondary
#C0DEAF
accent
#E3457D
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C15
muted
#827D84

Preview Lab

Preview with #AB5CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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