#AB54E1#AB54E1

#AB54E1 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.4% C 0.212 H 310.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AB54E1
RGBrgb(171, 84, 225)
HSLhsl(277, 70%, 61%)
HSVhsv(277, 63%, 88%)
CMYKcmyk(24%, 62.7%, 0%, 11.8%)
CIE-LABlab(52.33, 58.86, -57.56)
CIE-LCHlch(52.33, 82.33, 315.64°)
OKLaboklab(61.45% 0.1362 -0.1623)
OKLCHoklch(61.45% 0.212 310)
XYZxyz(33.5529, 20.4355, 73.3965)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54E1 #8AE154
analogous
#6454E1 #AB54E1 #E154D1
triadic
#AB54E1 #E1AB54 #54E1AB
tetradic
#AB54E1 #E16454 #8AE154 #54D1E1
square
#AB54E1 #E16454 #8AE154 #54D1E1
split-complementary
#AB54E1 #D1E154 #54E164
monochromatic
#6D1C9F #9025D3 #AB54E1 #C588EA #DEBCF3

Accessibility & contrast

On white

4.13
#AB54E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AB54E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54E1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54E1#FFFFFF#000000##000000
##AB54E11.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0479E5
Deuteranopia (green-blind)
#427EDE
Tritanopia (blue-blind)
#A47093
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab54e1;
/* rgb */ color: rgb(171, 84, 225);
/* oklch */ color: oklch(61.4% 0.212 310.0);
Tailwind
colors: {
  custom: {
    50: '#c889eb',
    500: '#ab54e1',
    950: '#000000',
  },
}
SCSS
$custom: #ab54e1;
$custom-light: #c889eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54e1",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 277.021,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61448,
    "c": 0.2119,
    "h": 310
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#AB54E1
secondary
#C2E3AE
accent
#D2135C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB54E1

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

Preview Lab → · Contrast checker → · Palette generator →

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