#AB54B3#AB54B3

#AB54B3 is a mid, vivid purple. Relative luminance 0.183; OKLCH L 58.8% C 0.166 H 324.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB54B3
RGBrgb(171, 84, 179)
HSLhsl(295, 38%, 52%)
HSVhsv(295, 53%, 70%)
CMYKcmyk(4.5%, 53.1%, 0%, 29.8%)
CIE-LABlab(49.80, 49.46, -35.17)
CIE-LCHlch(49.80, 60.69, 324.58°)
OKLaboklab(58.79% 0.1344 -0.0971)
OKLCHoklch(58.79% 0.166 324.2)
XYZxyz(28.1009, 18.2547, 44.6824)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54B3 #5CB354
analogous
#7C54B3 #AB54B3 #B3548C
triadic
#AB54B3 #B3AB54 #54B3AB
tetradic
#AB54B3 #B37C54 #5CB354 #548CB3
square
#AB54B3 #B37C54 #5CB354 #548CB3
split-complementary
#AB54B3 #8CB354 #54B37C
monochromatic
#5D2B61 #853E8C #AB54B3 #C07EC6 #D5A9D9

Accessibility & contrast

On white

4.52
#AB54B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#AB54B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54B3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54B3#FFFFFF#000000##000000
##AB54B31.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4770B6
Deuteranopia (green-blind)
#627AB0
Tritanopia (blue-blind)
#AE607C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab54b3;
/* rgb */ color: rgb(171, 84, 179);
/* oklch */ color: oklch(58.8% 0.166 324.2);
Tailwind
colors: {
  custom: {
    50: '#c688ca',
    500: '#ab54b3',
    950: '#000000',
  },
}
SCSS
$custom: #ab54b3;
$custom-light: #c688ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54b3",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 294.947,
    "s": 38.462,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58793,
    "c": 0.16581,
    "h": 324.2
  },
  "luminance": 0.18253
}

Semantic roles & 50–950 ramp

primary
#AB54B3
secondary
#A0C69D
accent
#CE5963
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AB54B3

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

Preview Lab → · Contrast checker → · Palette generator →

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