#AB54E8#AB54E8

#AB54E8 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.9% C 0.219 H 308.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AB54E8
RGBrgb(171, 84, 232)
HSLhsl(275, 76%, 62%)
HSVhsv(275, 64%, 91%)
CMYKcmyk(26.3%, 63.8%, 0%, 9%)
CIE-LABlab(52.76, 60.39, -60.81)
CIE-LCHlch(52.76, 85.70, 314.80°)
OKLaboklab(61.9% 0.1359 -0.1719)
OKLCHoklch(61.9% 0.219 308.3)
XYZxyz(34.5274, 20.8253, 78.5291)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54E8 #91E854
analogous
#6154E8 #AB54E8 #E854DB
triadic
#AB54E8 #E8AB54 #54E8AB
tetradic
#AB54E8 #E86154 #91E854 #54DBE8
square
#AB54E8 #E86154 #91E854 #54DBE8
split-complementary
#AB54E8 #DBE854 #54E861
monochromatic
#6E17AB #901EE1 #AB54E8 #C58AEF #E0C0F7

Accessibility & contrast

On white

4.07
#AB54E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AB54E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54E8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54E8#FFFFFF#000000##000000
##AB54E81.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BED
Deuteranopia (green-blind)
#3A7FE5
Tritanopia (blue-blind)
#A27297
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab54e8;
/* rgb */ color: rgb(171, 84, 232);
/* oklch */ color: oklch(61.9% 0.219 308.3);
Tailwind
colors: {
  custom: {
    50: '#c889f0',
    500: '#ab54e8',
    950: '#000000',
  },
}
SCSS
$custom: #ab54e8;
$custom-light: #c889f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54e8",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 275.27,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61898,
    "c": 0.21908,
    "h": 308.3
  },
  "luminance": 0.20825
}

Semantic roles & 50–950 ramp

primary
#AB54E8
secondary
#C7E7B1
accent
#D80D61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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