#AB54D8#AB54D8

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

Color values

HEX#AB54D8
RGBrgb(171, 84, 216)
HSLhsl(280, 63%, 59%)
HSVhsv(280, 61%, 85%)
CMYKcmyk(20.8%, 61.1%, 0%, 15.3%)
CIE-LABlab(51.79, 56.93, -53.32)
CIE-LCHlch(51.79, 78.00, 316.88°)
OKLaboklab(60.89% 0.1364 -0.1499)
OKLCHoklch(60.89% 0.203 312.3)
XYZxyz(32.3574, 19.9573, 67.1000)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D8 #81D854
analogous
#6954D8 #AB54D8 #D854C3
triadic
#AB54D8 #D8AB54 #54D8AB
tetradic
#AB54D8 #D86954 #81D854 #54C3D8
square
#AB54D8 #D86954 #81D854 #54C3D8
split-complementary
#AB54D8 #C3D854 #54D869
monochromatic
#6B2191 #8F2CC2 #AB54D8 #C386E3 #DCB8EF

Accessibility & contrast

On white

4.21
#AB54D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AB54D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D8#FFFFFF#000000##000000
##AB54D81.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2077DC
Deuteranopia (green-blind)
#4A7DD5
Tritanopia (blue-blind)
#A66D8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d8;
/* rgb */ color: rgb(171, 84, 216);
/* oklch */ color: oklch(60.9% 0.203 312.3);
Tailwind
colors: {
  custom: {
    50: '#c789e5',
    500: '#ab54d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d8;
$custom-light: #c789e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d8",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 216
  },
  "hsl": {
    "h": 279.545,
    "s": 62.857,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60887,
    "c": 0.2027,
    "h": 312.3
  },
  "luminance": 0.19956
}

Semantic roles & 50–950 ramp

primary
#AB54D8
secondary
#BCDEAA
accent
#E6427A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB54D8

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

Preview Lab → · Contrast checker → · Palette generator →

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