#AB56E2#AB56E2

#AB56E2 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.8% C 0.210 H 309.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AB56E2
RGBrgb(171, 86, 226)
HSLhsl(276, 71%, 61%)
HSVhsv(276, 62%, 89%)
CMYKcmyk(24.3%, 61.9%, 0%, 11.4%)
CIE-LABlab(52.74, 58.13, -57.47)
CIE-LCHlch(52.74, 81.74, 315.33°)
OKLaboklab(61.76% 0.1338 -0.1621)
OKLCHoklch(61.76% 0.21 309.6)
XYZxyz(33.8472, 20.8051, 74.1695)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56E2 #8DE256
analogous
#6556E2 #AB56E2 #E256D3
triadic
#AB56E2 #E2AB56 #56E2AB
tetradic
#AB56E2 #E26556 #8DE256 #56D3E2
square
#AB56E2 #E26556 #8DE256 #56D3E2
split-complementary
#AB56E2 #D3E256 #56E265
monochromatic
#6D1CA2 #9025D6 #AB56E2 #C58AEB #DFBEF4

Accessibility & contrast

On white

4.07
#AB56E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AB56E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56E2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56E2#FFFFFF#000000##000000
##AB56E21.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D7AE6
Deuteranopia (green-blind)
#437FDF
Tritanopia (blue-blind)
#A37294
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab56e2;
/* rgb */ color: rgb(171, 86, 226);
/* oklch */ color: oklch(61.8% 0.210 309.6);
Tailwind
colors: {
  custom: {
    50: '#c88aec',
    500: '#ab56e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab56e2;
$custom-light: #c88aec;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56e2",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 276.429,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61764,
    "c": 0.21019,
    "h": 309.6
  },
  "luminance": 0.20804
}

Semantic roles & 50–950 ramp

primary
#AB56E2
secondary
#C4E4B0
accent
#D3135E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56E2

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

Preview Lab → · Contrast checker → · Palette generator →

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