#AB56D9#AB56D9

#AB56D9 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.2% C 0.201 H 311.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB56D9
RGBrgb(171, 86, 217)
HSLhsl(279, 63%, 59%)
HSVhsv(279, 60%, 85%)
CMYKcmyk(21.2%, 60.4%, 0%, 14.9%)
CIE-LABlab(52.20, 56.18, -53.23)
CIE-LCHlch(52.20, 77.39, 316.55°)
OKLaboklab(61.21% 0.134 -0.1496)
OKLCHoklch(61.21% 0.201 311.8)
XYZxyz(32.6445, 20.3240, 67.8355)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB56D9 #84D956
analogous
#6A56D9 #AB56D9 #D956C6
triadic
#AB56D9 #D9AB56 #56D9AB
tetradic
#AB56D9 #D96A56 #84D956 #56C6D9
square
#AB56D9 #D96A56 #84D956 #56C6D9
split-complementary
#AB56D9 #C6D956 #56D96A
monochromatic
#6B2193 #902CC5 #AB56D9 #C488E4 #DDBAEF

Accessibility & contrast

On white

4.15
#AB56D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AB56D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB56D9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB56D9#FFFFFF#000000##000000
##AB56D91.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2478DD
Deuteranopia (green-blind)
#4C7ED6
Tritanopia (blue-blind)
#A66E90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab56d9;
/* rgb */ color: rgb(171, 86, 217);
/* oklch */ color: oklch(61.2% 0.201 311.8);
Tailwind
colors: {
  custom: {
    50: '#c78ae5',
    500: '#ab56d9',
    950: '#000000',
  },
}
SCSS
$custom: #ab56d9;
$custom-light: #c78ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab56d9",
  "rgb": {
    "r": 171,
    "g": 86,
    "b": 217
  },
  "hsl": {
    "h": 278.931,
    "s": 63.285,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61205,
    "c": 0.20088,
    "h": 311.8
  },
  "luminance": 0.20323
}

Semantic roles & 50–950 ramp

primary
#AB56D9
secondary
#BEDFAC
accent
#E6417B
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB56D9

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

Preview Lab → · Contrast checker → · Palette generator →

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