#AB56DE#AB56DE

#AB56DE is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.206 H 310.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB56DE
RGBrgb(171, 86, 222)
HSLhsl(278, 67%, 60%)
HSVhsv(278, 61%, 87%)
CMYKcmyk(23%, 61.3%, 0%, 12.9%)
CIE-LABlab(52.50, 57.26, -55.59)
CIE-LCHlch(52.50, 79.81, 315.85°)
OKLaboklab(61.51% 0.134 -0.1566)
OKLCHoklch(61.51% 0.206 310.5)
XYZxyz(33.3047, 20.5881, 71.3125)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56DE #89DE56
analogous
#6756DE #AB56DE #DE56CD
triadic
#AB56DE #DEAB56 #56DEAB
tetradic
#AB56DE #DE6756 #89DE56 #56CDDE
square
#AB56DE #DE6756 #89DE56 #56CDDE
split-complementary
#AB56DE #CDDE56 #56DE67
monochromatic
#6C1E9B #9028CE #AB56DE #C489E8 #DEBCF2

Accessibility & contrast

On white

4.10
#AB56DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AB56DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56DE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56DE#FFFFFF#000000##000000
##AB56DE1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A79E2
Deuteranopia (green-blind)
#477FDB
Tritanopia (blue-blind)
#A47092
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab56de;
/* rgb */ color: rgb(171, 86, 222);
/* oklch */ color: oklch(61.5% 0.206 310.5);
Tailwind
colors: {
  custom: {
    50: '#c88ae9',
    500: '#ab56de',
    950: '#000000',
  },
}
SCSS
$custom: #ab56de;
$custom-light: #c88ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56de",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 222
  },
  "hsl": {
    "h": 277.5,
    "s": 67.327,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61513,
    "c": 0.20605,
    "h": 310.5
  },
  "luminance": 0.20587
}

Semantic roles & 50–950 ramp

primary
#AB56DE
secondary
#C1E2AE
accent
#CF165C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56DE

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

Preview Lab → · Contrast checker → · Palette generator →

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