#AB54B2#AB54B2

#AB54B2 is a mid, vivid purple. Relative luminance 0.182; OKLCH L 58.7% C 0.165 H 324.5°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AB54B2
RGBrgb(171, 84, 178)
HSLhsl(296, 38%, 51%)
HSVhsv(296, 53%, 70%)
CMYKcmyk(3.9%, 52.8%, 0%, 30.2%)
CIE-LABlab(49.76, 49.27, -34.66)
CIE-LCHlch(49.76, 60.24, 324.87°)
OKLaboklab(58.74% 0.1343 -0.0956)
OKLCHoklch(58.74% 0.165 324.5)
XYZxyz(28.0001, 18.2144, 44.1517)
Luminance0.1821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB54B2 #5BB254
analogous
#7C54B2 #AB54B2 #B2548A
triadic
#AB54B2 #B2AB54 #54B2AB
tetradic
#AB54B2 #B27C54 #5BB254 #548AB2
square
#AB54B2 #B27C54 #5BB254 #548AB2
split-complementary
#AB54B2 #8AB254 #54B27C
monochromatic
#5C2B60 #853E8A #AB54B2 #C07EC5 #D4A8D8

Accessibility & contrast

On white

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

On black

4.64
#AB54B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB54B2
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB54B2#FFFFFF#000000##000000
##AB54B21.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4870B5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#AE607B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab54b2;
/* rgb */ color: rgb(171, 84, 178);
/* oklch */ color: oklch(58.7% 0.165 324.5);
Tailwind
colors: {
  custom: {
    50: '#c688c9',
    500: '#ab54b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab54b2;
$custom-light: #c688c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab54b2",
  "rgb": {
    "r": 171,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 295.532,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58742,
    "c": 0.16485,
    "h": 324.5
  },
  "luminance": 0.18213
}

Semantic roles & 50–950 ramp

primary
#AB54B2
secondary
#9FC69C
accent
#CE5A63
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AB54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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