#AB54C7#AB54C7

#AB54C7 is a mid, vivid purple. Relative luminance 0.191; OKLCH L 59.9% C 0.185 H 317.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB54C7
RGBrgb(171, 84, 199)
HSLhsl(285, 51%, 55%)
HSVhsv(285, 58%, 78%)
CMYKcmyk(14.1%, 57.8%, 0%, 22%)
CIE-LABlab(50.83, 53.39, -45.13)
CIE-LCHlch(50.83, 69.91, 319.80°)
OKLaboklab(59.88% 0.1361 -0.126)
OKLCHoklch(59.88% 0.185 317.2)
XYZxyz(30.2722, 19.1232, 56.1183)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54C7 #70C754
analogous
#7154C7 #AB54C7 #C754AA
triadic
#AB54C7 #C7AB54 #54C7AB
tetradic
#AB54C7 #C77154 #70C754 #54AAC7
square
#AB54C7 #C77154 #70C754 #54AAC7
split-complementary
#AB54C7 #AAC754 #54C771
monochromatic
#652879 #8C37A7 #AB54C7 #C282D6 #D8B0E5

Accessibility & contrast

On white

4.35
#AB54C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AB54C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54C7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54C7#FFFFFF#000000##000000
##AB54C71.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3773CB
Deuteranopia (green-blind)
#577CC4
Tritanopia (blue-blind)
#AA6786
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab54c7;
/* rgb */ color: rgb(171, 84, 199);
/* oklch */ color: oklch(59.9% 0.185 317.2);
Tailwind
colors: {
  custom: {
    50: '#c788d8',
    500: '#ab54c7',
    950: '#000000',
  },
}
SCSS
$custom: #ab54c7;
$custom-light: #c788d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54c7",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 199
  },
  "hsl": {
    "h": 285.391,
    "s": 50.661,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5988,
    "c": 0.18546,
    "h": 317.2
  },
  "luminance": 0.19122
}

Semantic roles & 50–950 ramp

primary
#AB54C7
secondary
#AFD3A3
accent
#DA4E70
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AB54C7

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

Preview Lab → · Contrast checker → · Palette generator →

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