#AB5CD8#AB5CD8

#AB5CD8 is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.9% C 0.191 H 311.5°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB5CD8
RGBrgb(171, 92, 216)
HSLhsl(278, 61%, 60%)
HSVhsv(278, 57%, 85%)
CMYKcmyk(20.8%, 57.4%, 0%, 15.3%)
CIE-LABlab(53.24, 53.00, -50.99)
CIE-LCHlch(53.24, 73.55, 316.11°)
OKLaboklab(61.95% 0.1266 -0.1431)
OKLCHoklch(61.95% 0.191 311.5)
XYZxyz(33.0142, 21.2708, 67.3190)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5CD8 #89D85C
analogous
#6D5CD8 #AB5CD8 #D85CC7
triadic
#AB5CD8 #D8AB5C #5CD8AB
tetradic
#AB5CD8 #D86D5C #89D85C #5CC7D8
square
#AB5CD8 #D86D5C #89D85C #5CC7D8
split-complementary
#AB5CD8 #C7D85C #5CD86D
monochromatic
#6C2496 #9030C7 #AB5CD8 #C48DE4 #DEBFF0

Accessibility & contrast

On white

4.00
#AB5CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AB5CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5CD8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5CD8#FFFFFF#000000##000000
##AB5CD81.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#347BDC
Deuteranopia (green-blind)
#5281D5
Tritanopia (blue-blind)
#A67291
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab5cd8;
/* rgb */ color: rgb(171, 92, 216);
/* oklch */ color: oklch(61.9% 0.191 311.5);
Tailwind
colors: {
  custom: {
    50: '#c78ee5',
    500: '#ab5cd8',
    950: '#000000',
  },
}
SCSS
$custom: #ab5cd8;
$custom-light: #c78ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5cd8",
  "rgb": {
    "r": 171,
    "g": 92,
    "b": 216
  },
  "hsl": {
    "h": 278.226,
    "s": 61.386,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61947,
    "c": 0.19107,
    "h": 311.5
  },
  "luminance": 0.2127
}

Semantic roles & 50–950 ramp

primary
#AB5CD8
secondary
#C1E0B0
accent
#C91C5B
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB5CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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