#AB52DA#AB52DA

#AB52DA is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.8% C 0.208 H 312.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB52DA
RGBrgb(171, 82, 218)
HSLhsl(279, 65%, 59%)
HSVhsv(279, 62%, 85%)
CMYKcmyk(21.6%, 62.4%, 0%, 14.5%)
CIE-LABlab(51.56, 58.31, -54.82)
CIE-LCHlch(51.56, 80.03, 316.76°)
OKLaboklab(60.76% 0.1388 -0.1543)
OKLCHoklch(60.76% 0.208 312)
XYZxyz(32.4645, 19.7553, 68.4191)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52DA #81DA52
analogous
#6752DA #AB52DA #DA52C5
triadic
#AB52DA #DAAB52 #52DAAB
tetradic
#AB52DA #DA6752 #81DA52 #52C5DA
square
#AB52DA #DA6752 #81DA52 #52C5DA
split-complementary
#AB52DA #C5DA52 #52DA67
monochromatic
#6B1F92 #8F2AC5 #AB52DA #C384E5 #DCB7F0

Accessibility & contrast

On white

4.24
#AB52DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#AB52DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52DA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52DA#FFFFFF#000000##000000
##AB52DA1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1476DE
Deuteranopia (green-blind)
#477DD7
Tritanopia (blue-blind)
#A66C8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab52da;
/* rgb */ color: rgb(171, 82, 218);
/* oklch */ color: oklch(60.8% 0.208 312.0);
Tailwind
colors: {
  custom: {
    50: '#c888e6',
    500: '#ab52da',
    950: '#000000',
  },
}
SCSS
$custom: #ab52da;
$custom-light: #c888e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52da",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 218
  },
  "hsl": {
    "h": 279.265,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60758,
    "c": 0.20752,
    "h": 312
  },
  "luminance": 0.19754
}

Semantic roles & 50–950 ramp

primary
#AB52DA
secondary
#BCDFA9
accent
#E8407A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52DA

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

Preview Lab → · Contrast checker → · Palette generator →

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