#AB54E4#AB54E4

#AB54E4 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.6% C 0.215 H 309.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB54E4
RGBrgb(171, 84, 228)
HSLhsl(276, 73%, 61%)
HSVhsv(276, 63%, 89%)
CMYKcmyk(25%, 63.2%, 0%, 10.6%)
CIE-LABlab(52.51, 59.52, -58.96)
CIE-LCHlch(52.51, 83.77, 315.27°)
OKLaboklab(61.64% 0.1361 -0.1664)
OKLCHoklch(61.64% 0.215 309.3)
XYZxyz(33.9657, 20.6006, 75.5708)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54E4 #8DE454
analogous
#6354E4 #AB54E4 #E454D5
triadic
#AB54E4 #E4AB54 #54E4AB
tetradic
#AB54E4 #E46354 #8DE454 #54D5E4
square
#AB54E4 #E46354 #8DE454 #54D5E4
split-complementary
#AB54E4 #D5E454 #54E463
monochromatic
#6D1AA4 #9022D9 #AB54E4 #C589EC #DFBEF5

Accessibility & contrast

On white

4.10
#AB54E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AB54E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54E4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54E4#FFFFFF#000000##000000
##AB54E41.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#3F7FE1
Tritanopia (blue-blind)
#A37195
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab54e4;
/* rgb */ color: rgb(171, 84, 228);
/* oklch */ color: oklch(61.6% 0.215 309.3);
Tailwind
colors: {
  custom: {
    50: '#c889ed',
    500: '#ab54e4',
    950: '#000000',
  },
}
SCSS
$custom: #ab54e4;
$custom-light: #c889ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54e4",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 276.25,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6164,
    "c": 0.21497,
    "h": 309.3
  },
  "luminance": 0.206
}

Semantic roles & 50–950 ramp

primary
#AB54E4
secondary
#C4E5AF
accent
#D5115E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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