#AB52CF#AB52CF

#AB52CF is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.1% C 0.196 H 315.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB52CF
RGBrgb(171, 82, 207)
HSLhsl(283, 57%, 57%)
HSVhsv(283, 60%, 81%)
CMYKcmyk(17.4%, 60.4%, 0%, 18.8%)
CIE-LABlab(50.92, 56.00, -49.58)
CIE-LCHlch(50.92, 74.79, 318.48°)
OKLaboklab(60.09% 0.1389 -0.1389)
OKLCHoklch(60.09% 0.196 315)
XYZxyz(31.0726, 19.1985, 61.0883)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52CF #76CF52
analogous
#6D52CF #AB52CF #CF52B5
triadic
#AB52CF #CFAB52 #52CFAB
tetradic
#AB52CF #CF6D52 #76CF52 #52B5CF
square
#AB52CF #CF6D52 #76CF52 #52B5CF
split-complementary
#AB52CF #B5CF52 #52CF6D
monochromatic
#672482 #8D31B2 #AB52CF #C282DC #DAB2EA

Accessibility & contrast

On white

4.34
#AB52CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AB52CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52CF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52CF#FFFFFF#000000##000000
##AB52CF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A74D3
Deuteranopia (green-blind)
#507CCC
Tritanopia (blue-blind)
#A86889
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab52cf;
/* rgb */ color: rgb(171, 82, 207);
/* oklch */ color: oklch(60.1% 0.196 315.0);
Tailwind
colors: {
  custom: {
    50: '#c787de',
    500: '#ab52cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab52cf;
$custom-light: #c787de;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52cf",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 282.72,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60088,
    "c": 0.19644,
    "h": 315
  },
  "luminance": 0.19198
}

Semantic roles & 50–950 ramp

primary
#AB52CF
secondary
#B4D8A5
accent
#E04874
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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