#AB56E8#AB56E8

#AB56E8 is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.1% C 0.216 H 308.1°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AB56E8
RGBrgb(171, 86, 232)
HSLhsl(275, 76%, 62%)
HSVhsv(275, 63%, 91%)
CMYKcmyk(26.3%, 62.9%, 0%, 9%)
CIE-LABlab(53.10, 59.45, -60.26)
CIE-LCHlch(53.10, 84.64, 314.61°)
OKLaboklab(62.15% 0.1336 -0.1703)
OKLCHoklch(62.15% 0.216 308.1)
XYZxyz(34.6849, 21.1402, 78.5815)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E8 #93E856
analogous
#6256E8 #AB56E8 #E856DC
triadic
#AB56E8 #E8AB56 #56E8AB
tetradic
#AB56E8 #E86256 #93E856 #56DCE8
square
#AB56E8 #E86256 #93E856 #56DCE8
split-complementary
#AB56E8 #DCE856 #56E862
monochromatic
#6E17AC #9020E1 #AB56E8 #C68CEF #E1C2F7

Accessibility & contrast

On white

4.02
#AB56E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AB56E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E8#FFFFFF#000000##000000
##AB56E81.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CED
Deuteranopia (green-blind)
#3C80E5
Tritanopia (blue-blind)
#A27497
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab56e8;
/* rgb */ color: rgb(171, 86, 232);
/* oklch */ color: oklch(62.1% 0.216 308.1);
Tailwind
colors: {
  custom: {
    50: '#c88af0',
    500: '#ab56e8',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e8;
$custom-light: #c88af0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e8",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 274.932,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62147,
    "c": 0.21641,
    "h": 308.1
  },
  "luminance": 0.2114
}

Semantic roles & 50–950 ramp

primary
#AB56E8
secondary
#C9E8B2
accent
#D80D62
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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