#AB56EB#AB56EB

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

Color values

HEX#AB56EB
RGBrgb(171, 86, 235)
HSLhsl(274, 79%, 63%)
HSVhsv(274, 63%, 92%)
CMYKcmyk(27.2%, 63.4%, 0%, 7.8%)
CIE-LABlab(53.29, 60.11, -61.64)
CIE-LCHlch(53.29, 86.10, 314.28°)
OKLaboklab(62.34% 0.1334 -0.1743)
OKLCHoklch(62.34% 0.22 307.4)
XYZxyz(35.1147, 21.3121, 80.8449)
Luminance0.2131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56EB #96EB56
analogous
#6056EB #AB56EB #EB56E1
triadic
#AB56EB #EBAB56 #56EBAB
tetradic
#AB56EB #EB6056 #96EB56 #56E1EB
square
#AB56EB #EB6056 #96EB56 #56E1EB
split-complementary
#AB56EB #E1EB56 #56EB60
monochromatic
#6E15B2 #901FE5 #AB56EB #C68DF1 #E1C3F8

Accessibility & contrast

On white

3.99
#AB56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#AB56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56EB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56EB#FFFFFF#000000##000000
##AB56EB1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#3980E8
Tritanopia (blue-blind)
#A17599
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab56eb;
/* rgb */ color: rgb(171, 86, 235);
/* oklch */ color: oklch(62.3% 0.220 307.4);
Tailwind
colors: {
  custom: {
    50: '#c88af2',
    500: '#ab56eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab56eb;
$custom-light: #c88af2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56eb",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 274.228,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62342,
    "c": 0.21952,
    "h": 307.4
  },
  "luminance": 0.21312
}

Semantic roles & 50–950 ramp

primary
#AB56EB
secondary
#CBE9B4
accent
#DB0A64
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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