#AB54DB#AB54DB

#AB54DB is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.1% C 0.206 H 311.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AB54DB
RGBrgb(171, 84, 219)
HSLhsl(279, 65%, 59%)
HSVhsv(279, 62%, 86%)
CMYKcmyk(21.9%, 61.6%, 0%, 14.1%)
CIE-LABlab(51.97, 57.57, -54.74)
CIE-LCHlch(51.97, 79.44, 316.44°)
OKLaboklab(61.07% 0.1364 -0.1541)
OKLCHoklch(61.07% 0.206 311.5)
XYZxyz(32.7488, 20.1138, 69.1613)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54DB #84DB54
analogous
#6854DB #AB54DB #DB54C7
triadic
#AB54DB #DBAB54 #54DBAB
tetradic
#AB54DB #DB6854 #84DB54 #54C7DB
square
#AB54DB #DB6854 #84DB54 #54C7DB
split-complementary
#AB54DB #C7DB54 #54DB68
monochromatic
#6B1F95 #902AC8 #AB54DB #C487E6 #DDB9F0

Accessibility & contrast

On white

4.18
#AB54DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AB54DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54DB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54DB#FFFFFF#000000##000000
##AB54DB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A78DF
Deuteranopia (green-blind)
#487ED8
Tritanopia (blue-blind)
#A56E90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54db;
/* rgb */ color: rgb(171, 84, 219);
/* oklch */ color: oklch(61.1% 0.206 311.5);
Tailwind
colors: {
  custom: {
    50: '#c789e7',
    500: '#ab54db',
    950: '#000000',
  },
}
SCSS
$custom: #ab54db;
$custom-light: #c789e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54db",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 278.667,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61072,
    "c": 0.20576,
    "h": 311.5
  },
  "luminance": 0.20113
}

Semantic roles & 50–950 ramp

primary
#AB54DB
secondary
#BEE0AB
accent
#E8407C
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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