#AB52CB#AB52CB

#AB52CB is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.9% C 0.192 H 316.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AB52CB
RGBrgb(171, 82, 203)
HSLhsl(284, 54%, 56%)
HSVhsv(284, 60%, 80%)
CMYKcmyk(15.8%, 59.6%, 0%, 20.4%)
CIE-LABlab(50.69, 55.18, -47.64)
CIE-LCHlch(50.69, 72.90, 319.19°)
OKLaboklab(59.85% 0.1388 -0.1333)
OKLCHoklch(59.85% 0.192 316.2)
XYZxyz(30.5897, 19.0054, 58.5454)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52CB #72CB52
analogous
#6E52CB #AB52CB #CB52AE
triadic
#AB52CB #CBAB52 #52CBAB
tetradic
#AB52CB #CB6E52 #72CB52 #52AECB
square
#AB52CB #CB6E52 #72CB52 #52AECB
split-complementary
#AB52CB #AECB52 #52CB6E
monochromatic
#66267D #8C34AC #AB52CB #C281D9 #D9B0E7

Accessibility & contrast

On white

4.37
#AB52CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AB52CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52CB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52CB#FFFFFF#000000##000000
##AB52CB1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F73CF
Deuteranopia (green-blind)
#537BC8
Tritanopia (blue-blind)
#A96787
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab52cb;
/* rgb */ color: rgb(171, 82, 203);
/* oklch */ color: oklch(59.9% 0.192 316.2);
Tailwind
colors: {
  custom: {
    50: '#c787db',
    500: '#ab52cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab52cb;
$custom-light: #c787db;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52cb",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 284.132,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59851,
    "c": 0.19244,
    "h": 316.2
  },
  "luminance": 0.19004
}

Semantic roles & 50–950 ramp

primary
#AB52CB
secondary
#B1D5A3
accent
#DD4B71
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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