#AB5AEC#AB5AEC

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

Color values

HEX#AB5AEC
RGBrgb(171, 90, 236)
HSLhsl(273, 79%, 64%)
HSVhsv(273, 62%, 93%)
CMYKcmyk(27.5%, 61.9%, 0%, 7.5%)
CIE-LABlab(54.06, 58.41, -60.97)
CIE-LCHlch(54.06, 84.44, 313.77°)
OKLaboklab(62.92% 0.1288 -0.1724)
OKLCHoklch(62.92% 0.215 306.8)
XYZxyz(35.5879, 22.0268, 81.7174)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AEC #9BEC5A
analogous
#625AEC #AB5AEC #EC5AE4
triadic
#AB5AEC #ECAB5A #5AECAB
tetradic
#AB5AEC #EC625A #9BEC5A #5AE4EC
square
#AB5AEC #EC625A #9BEC5A #5AE4EC
split-complementary
#AB5AEC #E4EC5A #5AEC62
monochromatic
#6F15B7 #8F23E6 #AB5AEC #C791F2 #E3C8F9

Accessibility & contrast

On white

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

On black

5.41
#AB5AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AEC
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AEC#FFFFFF#000000##000000
##AB5AEC1.003.895.415.41
#FFFFFF3.891.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#3D82E9
Tritanopia (blue-blind)
#A0789B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5aec;
/* rgb */ color: rgb(171, 90, 236);
/* oklch */ color: oklch(62.9% 0.215 306.8);
Tailwind
colors: {
  custom: {
    50: '#c88df3',
    500: '#ab5aec',
    950: '#000000',
  },
}
SCSS
$custom: #ab5aec;
$custom-light: #c88df3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5aec",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 236
  },
  "hsl": {
    "h": 273.288,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62915,
    "c": 0.21517,
    "h": 306.8
  },
  "luminance": 0.22026
}

Semantic roles & 50–950 ramp

primary
#AB5AEC
secondary
#CEEBB7
accent
#DC0A67
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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