#AB59DC#AB59DC

#AB59DC is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.8% C 0.200 H 310.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AB59DC
RGBrgb(171, 89, 220)
HSLhsl(278, 65%, 61%)
HSVhsv(278, 60%, 86%)
CMYKcmyk(22.3%, 59.5%, 0%, 13.7%)
CIE-LABlab(52.92, 55.36, -53.78)
CIE-LCHlch(52.92, 77.19, 315.83°)
OKLaboklab(61.78% 0.1304 -0.1513)
OKLCHoklch(61.78% 0.2 310.7)
XYZxyz(33.2828, 20.9707, 69.9907)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB59DC #8ADC59
analogous
#6959DC #AB59DC #DC59CC
triadic
#AB59DC #DCAB59 #59DCAB
tetradic
#AB59DC #DC6959 #8ADC59 #59CCDC
square
#AB59DC #DC6959 #8ADC59 #59CCDC
split-complementary
#AB59DC #CCDC59 #59DC69
monochromatic
#6D209A #902BCD #AB59DC #C58CE7 #DEBEF1

Accessibility & contrast

On white

4.04
#AB59DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AB59DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB59DC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB59DC#FFFFFF#000000##000000
##AB59DC1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#277AE0
Deuteranopia (green-blind)
#4C80D9
Tritanopia (blue-blind)
#A57192
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab59dc;
/* rgb */ color: rgb(171, 89, 220);
/* oklch */ color: oklch(61.8% 0.200 310.7);
Tailwind
colors: {
  custom: {
    50: '#c78ce7',
    500: '#ab59dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab59dc;
$custom-light: #c78ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab59dc",
  "rgb": {
    "r": 171,
    "g": 89,
    "b": 220
  },
  "hsl": {
    "h": 277.557,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61782,
    "c": 0.1997,
    "h": 310.7
  },
  "luminance": 0.2097
}

Semantic roles & 50–950 ramp

primary
#AB59DC
secondary
#C2E1AF
accent
#CD185C
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB59DC

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

Preview Lab → · Contrast checker → · Palette generator →

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