#AB54EF#AB54EF

#AB54EF is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.4% C 0.226 H 306.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB54EF
RGBrgb(171, 84, 239)
HSLhsl(274, 83%, 63%)
HSVhsv(274, 65%, 94%)
CMYKcmyk(28.5%, 64.9%, 0%, 6.3%)
CIE-LABlab(53.20, 61.94, -64.02)
CIE-LCHlch(53.20, 89.08, 314.05°)
OKLaboklab(62.36% 0.1354 -0.1813)
OKLCHoklch(62.36% 0.226 306.7)
XYZxyz(35.5416, 21.2310, 83.8702)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54EF #98EF54
analogous
#5D54EF #AB54EF #EF54E6
triadic
#AB54EF #EFAB54 #54EFAB
tetradic
#AB54EF #EF5D54 #98EF54 #54E6EF
square
#AB54EF #EF5D54 #98EF54 #54E6EF
split-complementary
#AB54EF #E6EF54 #54EF5D
monochromatic
#6E11B7 #901CEA #AB54EF #C68CF4 #E2C4F9

Accessibility & contrast

On white

4.00
#AB54EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#AB54EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54EF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54EF#FFFFFF#000000##000000
##AB54EF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF4
Deuteranopia (green-blind)
#3080EC
Tritanopia (blue-blind)
#A0759B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab54ef;
/* rgb */ color: rgb(171, 84, 239);
/* oklch */ color: oklch(62.4% 0.226 306.7);
Tailwind
colors: {
  custom: {
    50: '#c989f5',
    500: '#ab54ef',
    950: '#000000',
  },
}
SCSS
$custom: #ab54ef;
$custom-light: #c989f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54ef",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 239
  },
  "hsl": {
    "h": 273.677,
    "s": 82.888,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62359,
    "c": 0.22626,
    "h": 306.7
  },
  "luminance": 0.21231
}

Semantic roles & 50–950 ramp

primary
#AB54EF
secondary
#CCEBB4
accent
#DF0665
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54EF

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

Preview Lab → · Contrast checker → · Palette generator →

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