#AB56EC#AB56EC

#AB56EC is a light, highly saturated violet. Relative luminance 0.214; OKLCH L 62.4% C 0.221 H 307.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#AB56EC
RGBrgb(171, 86, 236)
HSLhsl(274, 80%, 63%)
HSVhsv(274, 64%, 93%)
CMYKcmyk(27.5%, 63.6%, 0%, 7.5%)
CIE-LABlab(53.35, 60.33, -62.10)
CIE-LCHlch(53.35, 86.58, 314.17°)
OKLaboklab(62.41% 0.1334 -0.1757)
OKLCHoklch(62.41% 0.221 307.2)
XYZxyz(35.2595, 21.3701, 81.6080)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56EC #97EC56
analogous
#6056EC #AB56EC #EC56E2
triadic
#AB56EC #ECAB56 #56ECAB
tetradic
#AB56EC #EC6056 #97EC56 #56E2EC
square
#AB56EC #EC6056 #97EC56 #56E2EC
split-complementary
#AB56EC #E2EC56 #56EC60
monochromatic
#6E14B3 #901FE6 #AB56EC #C68DF2 #E2C4F8

Accessibility & contrast

On white

3.98
#AB56EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#AB56EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56EC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56EC#FFFFFF#000000##000000
##AB56EC1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#3780E9
Tritanopia (blue-blind)
#A1759A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab56ec;
/* rgb */ color: rgb(171, 86, 236);
/* oklch */ color: oklch(62.4% 0.221 307.2);
Tailwind
colors: {
  custom: {
    50: '#c88af3',
    500: '#ab56ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab56ec;
$custom-light: #c88af3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56ec",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 274,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.62407,
    "c": 0.22056,
    "h": 307.2
  },
  "luminance": 0.2137
}

Semantic roles & 50–950 ramp

primary
#AB56EC
secondary
#CBEAB4
accent
#DC0965
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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