#AB54DD#AB54DD

#AB54DD is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.2% C 0.208 H 311.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AB54DD
RGBrgb(171, 84, 221)
HSLhsl(278, 67%, 60%)
HSVhsv(278, 62%, 87%)
CMYKcmyk(22.6%, 62%, 0%, 13.3%)
CIE-LABlab(52.08, 58.00, -55.68)
CIE-LCHlch(52.08, 80.40, 316.17°)
OKLaboklab(61.2% 0.1363 -0.1568)
OKLCHoklch(61.2% 0.208 311)
XYZxyz(33.0136, 20.2198, 70.5563)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54DD #86DD54
analogous
#6754DD #AB54DD #DD54CB
triadic
#AB54DD #DDAB54 #54DDAB
tetradic
#AB54DD #DD6754 #86DD54 #54CBDD
square
#AB54DD #DD6754 #86DD54 #54CBDD
split-complementary
#AB54DD #CBDD54 #54DD67
monochromatic
#6C1E98 #9028CB #AB54DD #C487E7 #DDBAF1

Accessibility & contrast

On white

4.16
#AB54DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AB54DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54DD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54DD#FFFFFF#000000##000000
##AB54DD1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1478E1
Deuteranopia (green-blind)
#467EDA
Tritanopia (blue-blind)
#A56E91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54dd;
/* rgb */ color: rgb(171, 84, 221);
/* oklch */ color: oklch(61.2% 0.208 311.0);
Tailwind
colors: {
  custom: {
    50: '#c889e8',
    500: '#ab54dd',
    950: '#000000',
  },
}
SCSS
$custom: #ab54dd;
$custom-light: #c889e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54dd",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 221
  },
  "hsl": {
    "h": 278.102,
    "s": 66.829,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61196,
    "c": 0.2078,
    "h": 311
  },
  "luminance": 0.20219
}

Semantic roles & 50–950 ramp

primary
#AB54DD
secondary
#BFE1AC
accent
#EA3E7D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54DD

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

Preview Lab → · Contrast checker → · Palette generator →

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