#AB52A2#AB52A2

#AB52A2 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.7% C 0.153 H 331.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB52A2
RGBrgb(171, 82, 162)
HSLhsl(306, 35%, 50%)
HSVhsv(306, 52%, 67%)
CMYKcmyk(0%, 52%, 5.3%, 32.9%)
CIE-LABlab(48.64, 47.34, -27.01)
CIE-LCHlch(48.64, 54.50, 330.29°)
OKLaboklab(57.68% 0.1346 -0.0737)
OKLCHoklch(57.68% 0.153 331.3)
XYZxyz(26.3333, 17.3028, 36.1282)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52A2 #52AB5B
analogous
#8752AB #AB52A2 #AB5276
triadic
#AB52A2 #A2AB52 #52A2AB
tetradic
#AB52A2 #AB8752 #52AB5B #5276AB
square
#AB52A2 #AB8752 #52AB5B #5276AB
split-complementary
#AB52A2 #76AB52 #52AB87
monochromatic
#582A54 #823E7B #AB52A2 #C07BB9 #D3A4CF

Accessibility & contrast

On white

4.71
#AB52A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AB52A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB52A2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52A2#FFFFFF#000000##FFFFFF
##AB52A21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6CA5
Deuteranopia (green-blind)
#68789F
Tritanopia (blue-blind)
#B15973
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab52a2;
/* rgb */ color: rgb(171, 82, 162);
/* oklch */ color: oklch(57.7% 0.153 331.3);
Tailwind
colors: {
  custom: {
    50: '#c686bd',
    500: '#ab52a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab52a2;
$custom-light: #c686bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52a2",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 306.067,
    "s": 35.178,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57676,
    "c": 0.15346,
    "h": 331.3
  },
  "luminance": 0.17301
}

Semantic roles & 50–950 ramp

primary
#AB52A2
secondary
#98C19C
accent
#CB685D
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AB52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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