#AB54DA#AB54DA

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

Color values

HEX#AB54DA
RGBrgb(171, 84, 218)
HSLhsl(279, 64%, 59%)
HSVhsv(279, 61%, 85%)
CMYKcmyk(21.6%, 61.5%, 0%, 14.5%)
CIE-LABlab(51.91, 57.36, -54.27)
CIE-LCHlch(51.91, 78.96, 316.59°)
OKLaboklab(61.01% 0.1364 -0.1527)
OKLCHoklch(61.01% 0.205 311.8)
XYZxyz(32.6175, 20.0613, 68.4701)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54DA #83DA54
analogous
#6854DA #AB54DA #DA54C6
triadic
#AB54DA #DAAB54 #54DAAB
tetradic
#AB54DA #DA6854 #83DA54 #54C6DA
square
#AB54DA #DA6854 #83DA54 #54C6DA
split-complementary
#AB54DA #C6DA54 #54DA68
monochromatic
#6B2094 #902BC6 #AB54DA #C486E5 #DCB9F0

Accessibility & contrast

On white

4.19
#AB54DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AB54DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54DA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54DA#FFFFFF#000000##000000
##AB54DA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C77DE
Deuteranopia (green-blind)
#497ED7
Tritanopia (blue-blind)
#A66D8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54da;
/* rgb */ color: rgb(171, 84, 218);
/* oklch */ color: oklch(61.0% 0.205 311.8);
Tailwind
colors: {
  custom: {
    50: '#c789e6',
    500: '#ab54da',
    950: '#000000',
  },
}
SCSS
$custom: #ab54da;
$custom-light: #c789e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54da",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 218
  },
  "hsl": {
    "h": 278.955,
    "s": 64.423,
    "l": 59.216
  },
  "oklch": {
    "l": 0.6101,
    "c": 0.20473,
    "h": 311.8
  },
  "luminance": 0.20061
}

Semantic roles & 50–950 ramp

primary
#AB54DA
secondary
#BDDFAB
accent
#E7407B
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54DA

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

Preview Lab → · Contrast checker → · Palette generator →

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