#AB54EB#AB54EB

#AB54EB is a light, highly saturated violet. Relative luminance 0.210; OKLCH L 62.1% C 0.222 H 307.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AB54EB
RGBrgb(171, 84, 235)
HSLhsl(275, 79%, 63%)
HSVhsv(275, 64%, 92%)
CMYKcmyk(27.2%, 64.3%, 0%, 7.8%)
CIE-LABlab(52.95, 61.05, -62.19)
CIE-LCHlch(52.95, 87.15, 314.47°)
OKLaboklab(62.09% 0.1357 -0.1759)
OKLCHoklch(62.09% 0.222 307.6)
XYZxyz(34.9572, 20.9972, 80.7925)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54EB #94EB54
analogous
#6054EB #AB54EB #EB54DF
triadic
#AB54EB #EBAB54 #54EBAB
tetradic
#AB54EB #EB6054 #94EB54 #54DFEB
square
#AB54EB #EB6054 #94EB54 #54DFEB
split-complementary
#AB54EB #DFEB54 #54EB60
monochromatic
#6E15B0 #901DE5 #AB54EB #C68BF1 #E1C2F8

Accessibility & contrast

On white

4.04
#AB54EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#AB54EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54EB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54EB#FFFFFF#000000##000000
##AB54EB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#367FE8
Tritanopia (blue-blind)
#A17498
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab54eb;
/* rgb */ color: rgb(171, 84, 235);
/* oklch */ color: oklch(62.1% 0.222 307.6);
Tailwind
colors: {
  custom: {
    50: '#c889f2',
    500: '#ab54eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab54eb;
$custom-light: #c889f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54eb",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 274.57,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62094,
    "c": 0.22215,
    "h": 307.6
  },
  "luminance": 0.20997
}

Semantic roles & 50–950 ramp

primary
#AB54EB
secondary
#C9E9B2
accent
#DB0A63
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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