#AB54DE#AB54DE

#AB54DE is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.3% C 0.209 H 310.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AB54DE
RGBrgb(171, 84, 222)
HSLhsl(278, 68%, 60%)
HSVhsv(278, 62%, 87%)
CMYKcmyk(23%, 62.2%, 0%, 12.9%)
CIE-LABlab(52.14, 58.22, -56.15)
CIE-LCHlch(52.14, 80.88, 316.03°)
OKLaboklab(61.26% 0.1363 -0.1582)
OKLCHoklch(61.26% 0.209 310.7)
XYZxyz(33.1472, 20.2732, 71.2600)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54DE #87DE54
analogous
#6654DE #AB54DE #DE54CC
triadic
#AB54DE #DEAB54 #54DEAB
tetradic
#AB54DE #DE6654 #87DE54 #54CCDE
square
#AB54DE #DE6654 #87DE54 #54CCDE
split-complementary
#AB54DE #CCDE54 #54DE66
monochromatic
#6C1E9A #9028CD #AB54DE #C487E8 #DDBBF2

Accessibility & contrast

On white

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

On black

5.05
#AB54DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54DE
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54DE#FFFFFF#000000##000000
##AB54DE1.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1178E2
Deuteranopia (green-blind)
#457EDB
Tritanopia (blue-blind)
#A56F91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54de;
/* rgb */ color: rgb(171, 84, 222);
/* oklch */ color: oklch(61.3% 0.209 310.7);
Tailwind
colors: {
  custom: {
    50: '#c889e9',
    500: '#ab54de',
    950: '#000000',
  },
}
SCSS
$custom: #ab54de;
$custom-light: #c889e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54de",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 277.826,
    "s": 67.647,
    "l": 60
  },
  "oklch": {
    "l": 0.61259,
    "c": 0.20883,
    "h": 310.7
  },
  "luminance": 0.20273
}

Semantic roles & 50–950 ramp

primary
#AB54DE
secondary
#C0E1AC
accent
#EB3D7D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54DE

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

Preview Lab → · Contrast checker → · Palette generator →

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