#AB56EA#AB56EA

#AB56EA is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.3% C 0.218 H 307.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB56EA
RGBrgb(171, 86, 234)
HSLhsl(274, 78%, 63%)
HSVhsv(274, 63%, 92%)
CMYKcmyk(26.9%, 63.2%, 0%, 8.2%)
CIE-LABlab(53.23, 59.89, -61.18)
CIE-LCHlch(53.23, 85.61, 314.39°)
OKLaboklab(62.28% 0.1335 -0.173)
OKLCHoklch(62.28% 0.218 307.7)
XYZxyz(34.9706, 21.2545, 80.0862)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56EA #95EA56
analogous
#6156EA #AB56EA #EA56DF
triadic
#AB56EA #EAAB56 #56EAAB
tetradic
#AB56EA #EA6156 #95EA56 #56DFEA
square
#AB56EA #EA6156 #95EA56 #56DFEA
split-complementary
#AB56EA #DFEA56 #56EA61
monochromatic
#6E16B0 #9020E3 #AB56EA #C68CF1 #E1C3F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB56EA#FFFFFF#000000##000000
##AB56EA1.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)
#007CEF
Deuteranopia (green-blind)
#3A80E7
Tritanopia (blue-blind)
#A17499
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab56ea;
/* rgb */ color: rgb(171, 86, 234);
/* oklch */ color: oklch(62.3% 0.218 307.7);
Tailwind
colors: {
  custom: {
    50: '#c88af1',
    500: '#ab56ea',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ea;
$custom-light: #c88af1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ea",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 274.459,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62277,
    "c": 0.21848,
    "h": 307.7
  },
  "luminance": 0.21254
}

Semantic roles & 50–950 ramp

primary
#AB56EA
secondary
#CAE9B3
accent
#DA0B63
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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