#AB4ABB#AB4ABB

#AB4ABB is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.9% C 0.189 H 321.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AB4ABB
RGBrgb(171, 74, 187)
HSLhsl(292, 45%, 51%)
HSVhsv(292, 60%, 73%)
CMYKcmyk(8.6%, 60.4%, 0%, 26.7%)
CIE-LABlab(48.44, 55.76, -41.98)
CIE-LCHlch(48.44, 69.80, 323.03°)
OKLaboklab(57.93% 0.1482 -0.1167)
OKLCHoklch(57.93% 0.189 321.8)
XYZxyz(28.2120, 17.1447, 48.8273)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ABB #5ABB4A
analogous
#724ABB #AB4ABB #BB4A92
triadic
#AB4ABB #BBAB4A #4ABBAB
tetradic
#AB4ABB #BB724A #5ABB4A #4A92BB
square
#AB4ABB #BB724A #5ABB4A #4A92BB
split-complementary
#AB4ABB #92BB4A #4ABB72
monochromatic
#5C2665 #843791 #AB4ABB #C076CC #D4A3DC

Accessibility & contrast

On white

4.74
#AB4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AB4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4ABB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ABB#FFFFFF#000000##FFFFFF
##AB4ABB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326CBE
Deuteranopia (green-blind)
#5777B8
Tritanopia (blue-blind)
#AD5B7C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4abb;
/* rgb */ color: rgb(171, 74, 187);
/* oklch */ color: oklch(57.9% 0.189 321.8);
Tailwind
colors: {
  custom: {
    50: '#c782d0',
    500: '#ab4abb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4abb;
$custom-light: #c782d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4abb",
  "rgb": {
    "r": 171,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 291.504,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5793,
    "c": 0.18865,
    "h": 321.8
  },
  "luminance": 0.17143
}

Semantic roles & 50–950 ramp

primary
#AB4ABB
secondary
#9FC997
accent
#D55365
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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