#AB54D9#AB54D9

#AB54D9 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.9% C 0.204 H 312.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB54D9
RGBrgb(171, 84, 217)
HSLhsl(279, 64%, 59%)
HSVhsv(279, 61%, 85%)
CMYKcmyk(21.2%, 61.3%, 0%, 14.9%)
CIE-LABlab(51.85, 57.15, -53.79)
CIE-LCHlch(51.85, 78.48, 316.73°)
OKLaboklab(60.95% 0.1364 -0.1513)
OKLCHoklch(60.95% 0.204 312)
XYZxyz(32.4870, 20.0091, 67.7830)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D9 #82D954
analogous
#6954D9 #AB54D9 #D954C5
triadic
#AB54D9 #D9AB54 #54D9AB
tetradic
#AB54D9 #D96954 #82D954 #54C5D9
square
#AB54D9 #D96954 #82D954 #54C5D9
split-complementary
#AB54D9 #C5D954 #54D969
monochromatic
#6B2092 #8F2CC4 #AB54D9 #C486E4 #DCB8EF

Accessibility & contrast

On white

4.20
#AB54D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AB54D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D9
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D9#FFFFFF#000000##000000
##AB54D91.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E77DD
Deuteranopia (green-blind)
#4A7DD6
Tritanopia (blue-blind)
#A66D8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab54d9;
/* rgb */ color: rgb(171, 84, 217);
/* oklch */ color: oklch(60.9% 0.204 312.0);
Tailwind
colors: {
  custom: {
    50: '#c789e5',
    500: '#ab54d9',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d9;
$custom-light: #c789e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d9",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 217
  },
  "hsl": {
    "h": 279.248,
    "s": 63.636,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60948,
    "c": 0.20372,
    "h": 312
  },
  "luminance": 0.20008
}

Semantic roles & 50–950 ramp

primary
#AB54D9
secondary
#BCDFAA
accent
#E7417A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54D9

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

Preview Lab → · Contrast checker → · Palette generator →

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