#AB52D9#AB52D9

#AB52D9 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.7% C 0.207 H 312.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AB52D9
RGBrgb(171, 82, 217)
HSLhsl(280, 64%, 59%)
HSVhsv(280, 62%, 85%)
CMYKcmyk(21.2%, 62.2%, 0%, 14.9%)
CIE-LABlab(51.50, 58.09, -54.35)
CIE-LCHlch(51.50, 79.55, 316.91°)
OKLaboklab(60.7% 0.1388 -0.1529)
OKLCHoklch(60.7% 0.207 312.2)
XYZxyz(32.3340, 19.7031, 67.7320)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D9 #80D952
analogous
#6752D9 #AB52D9 #D952C3
triadic
#AB52D9 #D9AB52 #52D9AB
tetradic
#AB52D9 #D96752 #80D952 #52C3D9
square
#AB52D9 #D96752 #80D952 #52C3D9
split-complementary
#AB52D9 #C3D952 #52D967
monochromatic
#6A2091 #8F2BC3 #AB52D9 #C384E4 #DCB6EF

Accessibility & contrast

On white

4.25
#AB52D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AB52D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D9#FFFFFF#000000##000000
##AB52D91.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1776DD
Deuteranopia (green-blind)
#487DD6
Tritanopia (blue-blind)
#A66C8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab52d9;
/* rgb */ color: rgb(171, 82, 217);
/* oklch */ color: oklch(60.7% 0.207 312.2);
Tailwind
colors: {
  custom: {
    50: '#c888e5',
    500: '#ab52d9',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d9;
$custom-light: #c888e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d9",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 279.556,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60696,
    "c": 0.20651,
    "h": 312.2
  },
  "luminance": 0.19702
}

Semantic roles & 50–950 ramp

primary
#AB52D9
secondary
#BBDEA9
accent
#E74179
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52D9

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

Preview Lab → · Contrast checker → · Palette generator →

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