#AB5AEB#AB5AEB

#AB5AEB is a light, highly saturated violet. Relative luminance 0.220; OKLCH L 62.9% C 0.214 H 307.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#AB5AEB
RGBrgb(171, 90, 235)
HSLhsl(274, 78%, 64%)
HSVhsv(274, 62%, 92%)
CMYKcmyk(27.2%, 61.7%, 0%, 7.8%)
CIE-LABlab(53.99, 58.19, -60.51)
CIE-LCHlch(53.99, 83.95, 313.88°)
OKLaboklab(62.85% 0.1289 -0.171)
OKLCHoklch(62.85% 0.214 307)
XYZxyz(35.4430, 21.9688, 80.9544)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AEB #9AEB5A
analogous
#625AEB #AB5AEB #EB5AE2
triadic
#AB5AEB #EBAB5A #5AEBAB
tetradic
#AB5AEB #EB625A #9AEB5A #5AE2EB
square
#AB5AEB #EB625A #9AEB5A #5AE2EB
split-complementary
#AB5AEB #E2EB5A #5AEB62
monochromatic
#6F16B5 #8F23E4 #AB5AEB #C791F2 #E3C7F8

Accessibility & contrast

On white

3.89
#AB5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#AB5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AEB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AEB#FFFFFF#000000##000000
##AB5AEB1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#3E82E8
Tritanopia (blue-blind)
#A1779A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5aeb;
/* rgb */ color: rgb(171, 90, 235);
/* oklch */ color: oklch(62.9% 0.214 307.0);
Tailwind
colors: {
  custom: {
    50: '#c88df2',
    500: '#ab5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #ab5aeb;
$custom-light: #c88df2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5aeb",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 273.517,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62851,
    "c": 0.21412,
    "h": 307
  },
  "luminance": 0.21968
}

Semantic roles & 50–950 ramp

primary
#AB5AEB
secondary
#CDEAB7
accent
#DB0B67
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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