#AB54C2#AB54C2

#AB54C2 is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.6% C 0.180 H 318.8°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AB54C2
RGBrgb(171, 84, 194)
HSLhsl(287, 47%, 55%)
HSVhsv(287, 57%, 76%)
CMYKcmyk(11.9%, 56.7%, 0%, 23.9%)
CIE-LABlab(50.56, 52.39, -42.67)
CIE-LCHlch(50.56, 67.56, 320.84°)
OKLaboklab(59.6% 0.1358 -0.1188)
OKLCHoklch(59.6% 0.18 318.8)
XYZxyz(29.7012, 18.8948, 53.1110)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54C2 #6BC254
analogous
#7454C2 #AB54C2 #C254A2
triadic
#AB54C2 #C2AB54 #54C2AB
tetradic
#AB54C2 #C27454 #6BC254 #54A2C2
square
#AB54C2 #C27454 #6BC254 #54A2C2
split-complementary
#AB54C2 #A2C254 #54C274
monochromatic
#632973 #8A39A0 #AB54C2 #C181D2 #D7AEE2

Accessibility & contrast

On white

4.39
#AB54C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#AB54C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54C2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54C2#FFFFFF#000000##000000
##AB54C21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C73C6
Deuteranopia (green-blind)
#5A7BBF
Tritanopia (blue-blind)
#AB6583
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ab54c2;
/* rgb */ color: rgb(171, 84, 194);
/* oklch */ color: oklch(59.6% 0.180 318.8);
Tailwind
colors: {
  custom: {
    50: '#c788d5',
    500: '#ab54c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab54c2;
$custom-light: #c788d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54c2",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 287.455,
    "s": 47.414,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59599,
    "c": 0.18047,
    "h": 318.8
  },
  "luminance": 0.18894
}

Semantic roles & 50–950 ramp

primary
#AB54C2
secondary
#ABD0A2
accent
#D7516D
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB54C2

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

Preview Lab → · Contrast checker → · Palette generator →

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