#AB52D3#AB52D3

#AB52D3 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.3% C 0.200 H 313.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AB52D3
RGBrgb(171, 82, 211)
HSLhsl(281, 59%, 57%)
HSVhsv(281, 61%, 83%)
CMYKcmyk(19%, 61.1%, 0%, 17.3%)
CIE-LABlab(51.15, 56.83, -51.50)
CIE-LCHlch(51.15, 76.69, 317.82°)
OKLaboklab(60.33% 0.1389 -0.1446)
OKLCHoklch(60.33% 0.2 313.8)
XYZxyz(31.5678, 19.3966, 63.6964)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D3 #7AD352
analogous
#6A52D3 #AB52D3 #D352BB
triadic
#AB52D3 #D3AB52 #52D3AB
tetradic
#AB52D3 #D36A52 #7AD352 #52BBD3
square
#AB52D3 #D36A52 #7AD352 #52BBD3
split-complementary
#AB52D3 #BBD352 #52D36A
monochromatic
#692388 #8E2FB9 #AB52D3 #C383DF #DAB4EC

Accessibility & contrast

On white

4.30
#AB52D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AB52D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D3
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D3#FFFFFF#000000##000000
##AB52D31.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2475D7
Deuteranopia (green-blind)
#4D7CD0
Tritanopia (blue-blind)
#A76A8B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab52d3;
/* rgb */ color: rgb(171, 82, 211);
/* oklch */ color: oklch(60.3% 0.200 313.8);
Tailwind
colors: {
  custom: {
    50: '#c787e1',
    500: '#ab52d3',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d3;
$custom-light: #c787e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d3",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 281.395,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60328,
    "c": 0.20046,
    "h": 313.8
  },
  "luminance": 0.19396
}

Semantic roles & 50–950 ramp

primary
#AB52D3
secondary
#B7DAA6
accent
#E34576
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52D3

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

Preview Lab → · Contrast checker → · Palette generator →

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