#AB5CD9#AB5CD9

#AB5CD9 is a light, vivid violet. Relative luminance 0.213; OKLCH L 62.0% C 0.192 H 311.2°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AB5CD9
RGBrgb(171, 92, 217)
HSLhsl(278, 62%, 61%)
HSVhsv(278, 58%, 85%)
CMYKcmyk(21.2%, 57.6%, 0%, 14.9%)
CIE-LABlab(53.30, 53.22, -51.47)
CIE-LCHlch(53.30, 74.04, 315.96°)
OKLaboklab(62.01% 0.1266 -0.1445)
OKLCHoklch(62.01% 0.192 311.2)
XYZxyz(33.1438, 21.3227, 68.0019)
Luminance0.2132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CD9 #8AD95C
analogous
#6C5CD9 #AB5CD9 #D95CC8
triadic
#AB5CD9 #D9AB5C #5CD9AB
tetradic
#AB5CD9 #D96C5C #8AD95C #5CC8D9
square
#AB5CD9 #D96C5C #8AD95C #5CC8D9
split-complementary
#AB5CD9 #C8D95C #5CD96C
monochromatic
#6D2397 #902FC9 #AB5CD9 #C58EE5 #DEBFF0

Accessibility & contrast

On white

3.99
#AB5CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#AB5CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CD9
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CD9#FFFFFF#000000##000000
##AB5CD91.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#337BDD
Deuteranopia (green-blind)
#5281D6
Tritanopia (blue-blind)
#A67392
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5cd9;
/* rgb */ color: rgb(171, 92, 217);
/* oklch */ color: oklch(62.0% 0.192 311.2);
Tailwind
colors: {
  custom: {
    50: '#c78ee5',
    500: '#ab5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cd9;
$custom-light: #c78ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cd9",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 277.92,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.62006,
    "c": 0.19214,
    "h": 311.2
  },
  "luminance": 0.21322
}

Semantic roles & 50–950 ramp

primary
#AB5CD9
secondary
#C2E0B1
accent
#CA1C5C
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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