#AB52CD#AB52CD

#AB52CD is a mid, vivid purple. Relative luminance 0.191; OKLCH L 60.0% C 0.194 H 315.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AB52CD
RGBrgb(171, 82, 205)
HSLhsl(283, 55%, 56%)
HSVhsv(283, 60%, 80%)
CMYKcmyk(16.6%, 60%, 0%, 19.6%)
CIE-LABlab(50.81, 55.59, -48.61)
CIE-LCHlch(50.81, 73.84, 318.83°)
OKLaboklab(59.97% 0.1388 -0.1361)
OKLCHoklch(59.97% 0.194 315.6)
XYZxyz(30.8296, 19.1013, 59.8087)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52CD #74CD52
analogous
#6E52CD #AB52CD #CD52B2
triadic
#AB52CD #CDAB52 #52CDAB
tetradic
#AB52CD #CD6E52 #74CD52 #52B2CD
square
#AB52CD #CD6E52 #74CD52 #52B2CD
split-complementary
#AB52CD #B2CD52 #52CD6E
monochromatic
#672580 #8D33AF #AB52CD #C281DB #D9B1E8

Accessibility & contrast

On white

4.36
#AB52CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AB52CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52CD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52CD#FFFFFF#000000##000000
##AB52CD1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D74D1
Deuteranopia (green-blind)
#517BCA
Tritanopia (blue-blind)
#A96788
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ab52cd;
/* rgb */ color: rgb(171, 82, 205);
/* oklch */ color: oklch(60.0% 0.194 315.6);
Tailwind
colors: {
  custom: {
    50: '#c787dd',
    500: '#ab52cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab52cd;
$custom-light: #c787dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52cd",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 283.415,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59969,
    "c": 0.19444,
    "h": 315.6
  },
  "luminance": 0.191
}

Semantic roles & 50–950 ramp

primary
#AB52CD
secondary
#B2D7A4
accent
#DE4973
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AB52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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