#AB5CD5#AB5CD5

#AB5CD5 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.8% C 0.188 H 312.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AB5CD5
RGBrgb(171, 92, 213)
HSLhsl(279, 59%, 60%)
HSVhsv(279, 57%, 84%)
CMYKcmyk(19.7%, 56.8%, 0%, 16.5%)
CIE-LABlab(53.08, 52.36, -49.56)
CIE-LCHlch(53.08, 72.09, 316.57°)
OKLaboklab(61.77% 0.1265 -0.1389)
OKLCHoklch(61.77% 0.188 312.3)
XYZxyz(32.6299, 21.1171, 65.2950)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CD5 #86D55C
analogous
#6F5CD5 #AB5CD5 #D55CC2
triadic
#AB5CD5 #D5AB5C #5CD5AB
tetradic
#AB5CD5 #D56F5C #86D55C #5CC2D5
square
#AB5CD5 #D56F5C #86D55C #5CC2D5
split-complementary
#AB5CD5 #C2D55C #5CD56F
monochromatic
#6C2591 #9032C2 #AB5CD5 #C48DE2 #DDBDEE

Accessibility & contrast

On white

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

On black

5.22
#AB5CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CD5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CD5#FFFFFF#000000##000000
##AB5CD51.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#377BD9
Deuteranopia (green-blind)
#5580D2
Tritanopia (blue-blind)
#A77190
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5cd5;
/* rgb */ color: rgb(171, 92, 213);
/* oklch */ color: oklch(61.8% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#c78ee2',
    500: '#ab5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cd5;
$custom-light: #c78ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cd5",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 279.174,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61771,
    "c": 0.18788,
    "h": 312.3
  },
  "luminance": 0.21116
}

Semantic roles & 50–950 ramp

primary
#AB5CD5
secondary
#BFDEAF
accent
#E2467C
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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