#AB56E4#AB56E4

#AB56E4 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.212 H 309.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AB56E4
RGBrgb(171, 86, 228)
HSLhsl(276, 72%, 62%)
HSVhsv(276, 62%, 89%)
CMYKcmyk(25%, 62.3%, 0%, 10.6%)
CIE-LABlab(52.86, 58.57, -58.40)
CIE-LCHlch(52.86, 82.71, 315.08°)
OKLaboklab(61.89% 0.1338 -0.1648)
OKLCHoklch(61.89% 0.212 309.1)
XYZxyz(34.1232, 20.9155, 75.6232)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E4 #8FE456
analogous
#6456E4 #AB56E4 #E456D6
triadic
#AB56E4 #E4AB56 #56E4AB
tetradic
#AB56E4 #E46456 #8FE456 #56D6E4
square
#AB56E4 #E46456 #8FE456 #56D6E4
split-complementary
#AB56E4 #D6E456 #56E464
monochromatic
#6D1AA5 #9023DA #AB56E4 #C58BEC #DFC0F5

Accessibility & contrast

On white

4.05
#AB56E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AB56E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E4#FFFFFF#000000##000000
##AB56E41.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#037BE8
Deuteranopia (green-blind)
#417FE1
Tritanopia (blue-blind)
#A37295
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab56e4;
/* rgb */ color: rgb(171, 86, 228);
/* oklch */ color: oklch(61.9% 0.212 309.1);
Tailwind
colors: {
  custom: {
    50: '#c88aed',
    500: '#ab56e4',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e4;
$custom-light: #c88aed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e4",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 275.915,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61891,
    "c": 0.21227,
    "h": 309.1
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#AB56E4
secondary
#C6E5B0
accent
#D5115F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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