#AB54D3#AB54D3

#AB54D3 is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.6% C 0.198 H 313.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB54D3
RGBrgb(171, 84, 211)
HSLhsl(281, 59%, 58%)
HSVhsv(281, 60%, 83%)
CMYKcmyk(19%, 60.2%, 0%, 17.3%)
CIE-LABlab(51.50, 55.88, -50.94)
CIE-LCHlch(51.50, 75.61, 317.65°)
OKLaboklab(60.58% 0.1364 -0.1429)
OKLCHoklch(60.58% 0.198 313.7)
XYZxyz(31.7208, 19.7026, 63.7474)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54D3 #7CD354
analogous
#6B54D3 #AB54D3 #D354BC
triadic
#AB54D3 #D3AB54 #54D3AB
tetradic
#AB54D3 #D36B54 #7CD354 #54BCD3
square
#AB54D3 #D36B54 #7CD354 #54BCD3
split-complementary
#AB54D3 #BCD354 #54D36B
monochromatic
#692389 #8E30BA #AB54D3 #C385E0 #DBB5EC

Accessibility & contrast

On white

4.25
#AB54D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AB54D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54D3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54D3#FFFFFF#000000##000000
##AB54D31.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2976D7
Deuteranopia (green-blind)
#4F7DD0
Tritanopia (blue-blind)
#A76B8C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab54d3;
/* rgb */ color: rgb(171, 84, 211);
/* oklch */ color: oklch(60.6% 0.198 313.7);
Tailwind
colors: {
  custom: {
    50: '#c789e1',
    500: '#ab54d3',
    950: '#000000',
  },
}
SCSS
$custom: #ab54d3;
$custom-light: #c789e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54d3",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 281.102,
    "s": 59.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60583,
    "c": 0.1976,
    "h": 313.7
  },
  "luminance": 0.19702
}

Semantic roles & 50–950 ramp

primary
#AB54D3
secondary
#B8DBA8
accent
#E24677
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB54D3

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

Preview Lab → · Contrast checker → · Palette generator →

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