#AB54C4#AB54C4

#AB54C4 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.7% C 0.182 H 318.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AB54C4
RGBrgb(171, 84, 196)
HSLhsl(287, 49%, 55%)
HSVhsv(287, 57%, 77%)
CMYKcmyk(12.8%, 57.1%, 0%, 23.1%)
CIE-LABlab(50.67, 52.79, -43.66)
CIE-LCHlch(50.67, 68.50, 320.41°)
OKLaboklab(59.71% 0.1359 -0.1217)
OKLCHoklch(59.71% 0.182 318.2)
XYZxyz(29.9274, 18.9853, 54.3019)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54C4 #6DC454
analogous
#7354C4 #AB54C4 #C454A5
triadic
#AB54C4 #C4AB54 #54C4AB
tetradic
#AB54C4 #C47354 #6DC454 #54A5C4
square
#AB54C4 #C47354 #6DC454 #54A5C4
split-complementary
#AB54C4 #A5C454 #54C473
monochromatic
#642875 #8B38A3 #AB54C4 #C182D4 #D8AFE3

Accessibility & contrast

On white

4.38
#AB54C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AB54C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54C4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54C4#FFFFFF#000000##000000
##AB54C41.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A73C8
Deuteranopia (green-blind)
#597CC1
Tritanopia (blue-blind)
#AB6684
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab54c4;
/* rgb */ color: rgb(171, 84, 196);
/* oklch */ color: oklch(59.7% 0.182 318.2);
Tailwind
colors: {
  custom: {
    50: '#c788d6',
    500: '#ab54c4',
    950: '#000000',
  },
}
SCSS
$custom: #ab54c4;
$custom-light: #c788d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54c4",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 196
  },
  "hsl": {
    "h": 286.607,
    "s": 48.696,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59711,
    "c": 0.18246,
    "h": 318.2
  },
  "luminance": 0.18984
}

Semantic roles & 50–950 ramp

primary
#AB54C4
secondary
#ADD1A2
accent
#D8506E
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB54C4

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

Preview Lab → · Contrast checker → · Palette generator →

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