#AB54DC#AB54DC

#AB54DC is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.207 H 311.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AB54DC
RGBrgb(171, 84, 220)
HSLhsl(278, 66%, 60%)
HSVhsv(278, 62%, 86%)
CMYKcmyk(22.3%, 61.8%, 0%, 13.7%)
CIE-LABlab(52.03, 57.79, -55.21)
CIE-LCHlch(52.03, 79.92, 316.31°)
OKLaboklab(61.13% 0.1364 -0.1554)
OKLCHoklch(61.13% 0.207 311.3)
XYZxyz(32.8808, 20.1666, 69.8567)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54DC #85DC54
analogous
#6754DC #AB54DC #DC54C9
triadic
#AB54DC #DCAB54 #54DCAB
tetradic
#AB54DC #DC6754 #85DC54 #54C9DC
square
#AB54DC #DC6754 #85DC54 #54C9DC
split-complementary
#AB54DC #C9DC54 #54DC67
monochromatic
#6C1F97 #9029CA #AB54DC #C487E6 #DDBAF1

Accessibility & contrast

On white

4.17
#AB54DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AB54DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54DC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54DC#FFFFFF#000000##000000
##AB54DC1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1778E0
Deuteranopia (green-blind)
#477ED9
Tritanopia (blue-blind)
#A56E90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54dc;
/* rgb */ color: rgb(171, 84, 220);
/* oklch */ color: oklch(61.1% 0.207 311.3);
Tailwind
colors: {
  custom: {
    50: '#c889e7',
    500: '#ab54dc',
    950: '#000000',
  },
}
SCSS
$custom: #ab54dc;
$custom-light: #c889e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54dc",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 220
  },
  "hsl": {
    "h": 278.382,
    "s": 66.019,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61134,
    "c": 0.20678,
    "h": 311.3
  },
  "luminance": 0.20166
}

Semantic roles & 50–950 ramp

primary
#AB54DC
secondary
#BFE0AC
accent
#E93F7C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54DC

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

Preview Lab → · Contrast checker → · Palette generator →

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