#AB56E9#AB56E9

#AB56E9 is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.2% C 0.217 H 307.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AB56E9
RGBrgb(171, 86, 233)
HSLhsl(275, 77%, 63%)
HSVhsv(275, 63%, 91%)
CMYKcmyk(26.6%, 63.1%, 0%, 8.6%)
CIE-LABlab(53.16, 59.67, -60.72)
CIE-LCHlch(53.16, 85.13, 314.50°)
OKLaboklab(62.21% 0.1335 -0.1716)
OKLCHoklch(62.21% 0.217 307.9)
XYZxyz(34.8273, 21.1972, 79.3317)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E9 #94E956
analogous
#6256E9 #AB56E9 #E956DD
triadic
#AB56E9 #E9AB56 #56E9AB
tetradic
#AB56E9 #E96256 #94E956 #56DDE9
square
#AB56E9 #E96256 #94E956 #56DDE9
split-complementary
#AB56E9 #DDE956 #56E962
monochromatic
#6E17AE #9020E2 #AB56E9 #C68CF0 #E1C2F7

Accessibility & contrast

On white

4.01
#AB56E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AB56E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E9
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E9#FFFFFF#000000##000000
##AB56E91.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEE
Deuteranopia (green-blind)
#3B80E6
Tritanopia (blue-blind)
#A17498
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab56e9;
/* rgb */ color: rgb(171, 86, 233);
/* oklch */ color: oklch(62.2% 0.217 307.9);
Tailwind
colors: {
  custom: {
    50: '#c88af1',
    500: '#ab56e9',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e9;
$custom-light: #c88af1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e9",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 233
  },
  "hsl": {
    "h": 274.694,
    "s": 76.963,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62212,
    "c": 0.21744,
    "h": 307.9
  },
  "luminance": 0.21197
}

Semantic roles & 50–950 ramp

primary
#AB56E9
secondary
#C9E8B3
accent
#D90C63
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56E9

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

Preview Lab → · Contrast checker → · Palette generator →

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