#AB54EC#AB54EC

#AB54EC is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.2% C 0.223 H 307.4°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AB54EC
RGBrgb(171, 84, 236)
HSLhsl(274, 80%, 63%)
HSVhsv(274, 64%, 93%)
CMYKcmyk(27.5%, 64.4%, 0%, 7.5%)
CIE-LABlab(53.01, 61.27, -62.65)
CIE-LCHlch(53.01, 87.63, 314.36°)
OKLaboklab(62.16% 0.1356 -0.1773)
OKLCHoklch(62.16% 0.223 307.4)
XYZxyz(35.1021, 21.0552, 81.5555)
Luminance0.2105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54EC #95EC54
analogous
#5F54EC #AB54EC #EC54E1
triadic
#AB54EC #ECAB54 #54ECAB
tetradic
#AB54EC #EC5F54 #95EC54 #54E1EC
square
#AB54EC #EC5F54 #95EC54 #54E1EC
split-complementary
#AB54EC #E1EC54 #54EC5F
monochromatic
#6E14B2 #901DE6 #AB54EC #C68BF2 #E1C2F8

Accessibility & contrast

On white

4.03
#AB54EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#AB54EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54EC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54EC#FFFFFF#000000##000000
##AB54EC1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#347FE9
Tritanopia (blue-blind)
#A17499
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab54ec;
/* rgb */ color: rgb(171, 84, 236);
/* oklch */ color: oklch(62.2% 0.223 307.4);
Tailwind
colors: {
  custom: {
    50: '#c889f3',
    500: '#ab54ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab54ec;
$custom-light: #c889f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54ec",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 236
  },
  "hsl": {
    "h": 274.342,
    "s": 80,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6216,
    "c": 0.22318,
    "h": 307.4
  },
  "luminance": 0.21055
}

Semantic roles & 50–950 ramp

primary
#AB54EC
secondary
#CAE9B2
accent
#DC0963
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54EC

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

Preview Lab → · Contrast checker → · Palette generator →

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