#AB5CD4#AB5CD4

#AB5CD4 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.7% C 0.187 H 312.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AB5CD4
RGBrgb(171, 92, 212)
HSLhsl(280, 58%, 60%)
HSVhsv(280, 57%, 83%)
CMYKcmyk(19.3%, 56.6%, 0%, 16.9%)
CIE-LABlab(53.02, 52.14, -49.08)
CIE-LCHlch(53.02, 71.60, 316.73°)
OKLaboklab(61.71% 0.1264 -0.1375)
OKLCHoklch(61.71% 0.187 312.6)
XYZxyz(32.5033, 21.0665, 64.6286)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CD4 #85D45C
analogous
#6F5CD4 #AB5CD4 #D45CC1
triadic
#AB5CD4 #D4AB5C #5CD4AB
tetradic
#AB5CD4 #D46F5C #85D45C #5CC1D4
square
#AB5CD4 #D46F5C #85D45C #5CC1D4
split-complementary
#AB5CD4 #C1D45C #5CD46F
monochromatic
#6C2690 #9033C0 #AB5CD4 #C48CE1 #DDBDEE

Accessibility & contrast

On white

4.03
#AB5CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AB5CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CD4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CD4#FFFFFF#000000##000000
##AB5CD41.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#387AD8
Deuteranopia (green-blind)
#5580D1
Tritanopia (blue-blind)
#A7718F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5cd4;
/* rgb */ color: rgb(171, 92, 212);
/* oklch */ color: oklch(61.7% 0.187 312.6);
Tailwind
colors: {
  custom: {
    50: '#c78ee2',
    500: '#ab5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cd4;
$custom-light: #c78ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cd4",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 279.5,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61713,
    "c": 0.18681,
    "h": 312.6
  },
  "luminance": 0.21066
}

Semantic roles & 50–950 ramp

primary
#AB5CD4
secondary
#BFDDAF
accent
#E1467B
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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