#AB54ED#AB54ED

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

Color values

HEX#AB54ED
RGBrgb(171, 84, 237)
HSLhsl(274, 81%, 63%)
HSVhsv(274, 65%, 93%)
CMYKcmyk(27.8%, 64.6%, 0%, 7.1%)
CIE-LABlab(53.07, 61.50, -63.11)
CIE-LCHlch(53.07, 88.12, 314.26°)
OKLaboklab(62.23% 0.1355 -0.1786)
OKLCHoklch(62.23% 0.224 307.2)
XYZxyz(35.2478, 21.1134, 82.3228)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54ED #96ED54
analogous
#5F54ED #AB54ED #ED54E2
triadic
#AB54ED #EDAB54 #54EDAB
tetradic
#AB54ED #ED5F54 #96ED54 #54E2ED
square
#AB54ED #ED5F54 #96ED54 #54E2ED
split-complementary
#AB54ED #E2ED54 #54ED5F
monochromatic
#6E13B4 #901DE7 #AB54ED #C68BF3 #E1C3F9

Accessibility & contrast

On white

4.02
#AB54ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#AB54ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54ED
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54ED#FFFFFF#000000##000000
##AB54ED1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF2
Deuteranopia (green-blind)
#337FEA
Tritanopia (blue-blind)
#A07499
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ab54ed;
/* rgb */ color: rgb(171, 84, 237);
/* oklch */ color: oklch(62.2% 0.224 307.2);
Tailwind
colors: {
  custom: {
    50: '#c889f4',
    500: '#ab54ed',
    950: '#000000',
  },
}
SCSS
$custom: #ab54ed;
$custom-light: #c889f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54ed",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 237
  },
  "hsl": {
    "h": 274.118,
    "s": 80.952,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62226,
    "c": 0.22421,
    "h": 307.2
  },
  "luminance": 0.21113
}

Semantic roles & 50–950 ramp

primary
#AB54ED
secondary
#CBEAB3
accent
#DD0864
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB54ED

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

Preview Lab → · Contrast checker → · Palette generator →

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