#AB5AEA#AB5AEA

#AB5AEA is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 62.8% C 0.213 H 307.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AB5AEA
RGBrgb(171, 90, 234)
HSLhsl(274, 77%, 64%)
HSVhsv(274, 62%, 92%)
CMYKcmyk(26.9%, 61.5%, 0%, 8.2%)
CIE-LABlab(53.93, 57.97, -60.04)
CIE-LCHlch(53.93, 83.46, 313.99°)
OKLaboklab(62.79% 0.1289 -0.1696)
OKLCHoklch(62.79% 0.213 307.2)
XYZxyz(35.2989, 21.9112, 80.1957)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5AEA #99EA5A
analogous
#635AEA #AB5AEA #EA5AE1
triadic
#AB5AEA #EAAB5A #5AEAAB
tetradic
#AB5AEA #EA635A #99EA5A #5AE1EA
square
#AB5AEA #EA635A #99EA5A #5AE1EA
split-complementary
#AB5AEA #E1EA5A #5AEA63
monochromatic
#6F17B3 #8F24E3 #AB5AEA #C790F1 #E2C7F8

Accessibility & contrast

On white

3.90
#AB5AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#AB5AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5AEA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5AEA#FFFFFF#000000##000000
##AB5AEA1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#047EEE
Deuteranopia (green-blind)
#3F82E7
Tritanopia (blue-blind)
#A1779A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab5aea;
/* rgb */ color: rgb(171, 90, 234);
/* oklch */ color: oklch(62.8% 0.213 307.2);
Tailwind
colors: {
  custom: {
    50: '#c88df1',
    500: '#ab5aea',
    950: '#000000',
  },
}
SCSS
$custom: #ab5aea;
$custom-light: #c88df1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5aea",
  "rgb": {
    "r": 171,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 273.75,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62787,
    "c": 0.21306,
    "h": 307.2
  },
  "luminance": 0.21911
}

Semantic roles & 50–950 ramp

primary
#AB5AEA
secondary
#CDE9B6
accent
#DA0C66
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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