#AB54E9#AB54E9

#AB54E9 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 62.0% C 0.220 H 308.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AB54E9
RGBrgb(171, 84, 233)
HSLhsl(275, 77%, 62%)
HSVhsv(275, 64%, 91%)
CMYKcmyk(26.6%, 63.9%, 0%, 8.6%)
CIE-LABlab(52.82, 60.61, -61.27)
CIE-LCHlch(52.82, 86.19, 314.69°)
OKLaboklab(61.96% 0.1358 -0.1732)
OKLCHoklch(61.96% 0.22 308.1)
XYZxyz(34.6699, 20.8823, 79.2793)
Luminance0.2088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54E9 #92E954
analogous
#6154E9 #AB54E9 #E954DC
triadic
#AB54E9 #E9AB54 #54E9AB
tetradic
#AB54E9 #E96154 #92E954 #54DCE9
square
#AB54E9 #E96154 #92E954 #54DCE9
split-complementary
#AB54E9 #DCE954 #54E961
monochromatic
#6E16AC #901EE2 #AB54E9 #C68AF0 #E0C0F7

Accessibility & contrast

On white

4.06
#AB54E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AB54E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54E9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54E9#FFFFFF#000000##000000
##AB54E91.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEE
Deuteranopia (green-blind)
#387FE6
Tritanopia (blue-blind)
#A17397
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab54e9;
/* rgb */ color: rgb(171, 84, 233);
/* oklch */ color: oklch(62.0% 0.220 308.1);
Tailwind
colors: {
  custom: {
    50: '#c889f1',
    500: '#ab54e9',
    950: '#000000',
  },
}
SCSS
$custom: #ab54e9;
$custom-light: #c889f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54e9",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 233
  },
  "hsl": {
    "h": 275.034,
    "s": 77.202,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61963,
    "c": 0.22011,
    "h": 308.1
  },
  "luminance": 0.20882
}

Semantic roles & 50–950 ramp

primary
#AB54E9
secondary
#C8E8B1
accent
#D90C62
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54E9

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

Preview Lab → · Contrast checker → · Palette generator →

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