#AB54CD#AB54CD

#AB54CD is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.2% C 0.192 H 315.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AB54CD
RGBrgb(171, 84, 205)
HSLhsl(283, 55%, 57%)
HSVhsv(283, 59%, 80%)
CMYKcmyk(16.6%, 59%, 0%, 19.6%)
CIE-LABlab(51.16, 54.62, -48.05)
CIE-LCHlch(51.16, 72.75, 318.67°)
OKLaboklab(60.23% 0.1363 -0.1345)
OKLCHoklch(60.23% 0.192 315.4)
XYZxyz(30.9826, 19.4074, 59.8597)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54CD #76CD54
analogous
#6F54CD #AB54CD #CD54B3
triadic
#AB54CD #CDAB54 #54CDAB
tetradic
#AB54CD #CD6F54 #76CD54 #54B3CD
square
#AB54CD #CD6F54 #76CD54 #54B3CD
split-complementary
#AB54CD #B3CD54 #54CD6F
monochromatic
#672681 #8D34B0 #AB54CD #C283DB #DAB3E9

Accessibility & contrast

On white

4.30
#AB54CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AB54CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54CD
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54CD#FFFFFF#000000##000000
##AB54CD1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3175D1
Deuteranopia (green-blind)
#537CCA
Tritanopia (blue-blind)
#A96989
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab54cd;
/* rgb */ color: rgb(171, 84, 205);
/* oklch */ color: oklch(60.2% 0.192 315.4);
Tailwind
colors: {
  custom: {
    50: '#c788dd',
    500: '#ab54cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab54cd;
$custom-light: #c788dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54cd",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 283.14,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60227,
    "c": 0.19151,
    "h": 315.4
  },
  "luminance": 0.19406
}

Semantic roles & 50–950 ramp

primary
#AB54CD
secondary
#B4D7A6
accent
#DE4A73
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54CD

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

Preview Lab → · Contrast checker → · Palette generator →

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