#AB56DD#AB56DD

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

Color values

HEX#AB56DD
RGBrgb(171, 86, 221)
HSLhsl(278, 67%, 60%)
HSVhsv(278, 61%, 87%)
CMYKcmyk(22.6%, 61.1%, 0%, 13.3%)
CIE-LABlab(52.44, 57.04, -55.12)
CIE-LCHlch(52.44, 79.32, 315.98°)
OKLaboklab(61.45% 0.134 -0.1552)
OKLCHoklch(61.45% 0.205 310.8)
XYZxyz(33.1711, 20.5347, 70.6088)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56DD #88DD56
analogous
#6856DD #AB56DD #DD56CB
triadic
#AB56DD #DDAB56 #56DDAB
tetradic
#AB56DD #DD6856 #88DD56 #56CBDD
square
#AB56DD #DD6856 #88DD56 #56CBDD
split-complementary
#AB56DD #CBDD56 #56DD68
monochromatic
#6C1F9A #9029CD #AB56DD #C489E7 #DEBCF2

Accessibility & contrast

On white

4.11
#AB56DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AB56DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56DD
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56DD#FFFFFF#000000##000000
##AB56DD1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C79E1
Deuteranopia (green-blind)
#487FDA
Tritanopia (blue-blind)
#A57092
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab56dd;
/* rgb */ color: rgb(171, 86, 221);
/* oklch */ color: oklch(61.5% 0.205 310.8);
Tailwind
colors: {
  custom: {
    50: '#c78ae8',
    500: '#ab56dd',
    950: '#000000',
  },
}
SCSS
$custom: #ab56dd;
$custom-light: #c78ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56dd",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 221
  },
  "hsl": {
    "h": 277.778,
    "s": 66.502,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61451,
    "c": 0.20501,
    "h": 310.8
  },
  "luminance": 0.20534
}

Semantic roles & 50–950 ramp

primary
#AB56DD
secondary
#C1E1AE
accent
#CE175B
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56DD

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

Preview Lab → · Contrast checker → · Palette generator →

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