#AB52DB#AB52DB

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

Color values

HEX#AB52DB
RGBrgb(171, 82, 219)
HSLhsl(279, 66%, 59%)
HSVhsv(279, 63%, 86%)
CMYKcmyk(21.9%, 62.6%, 0%, 14.1%)
CIE-LABlab(51.62, 58.52, -55.29)
CIE-LCHlch(51.62, 80.51, 316.62°)
OKLaboklab(60.82% 0.1387 -0.1557)
OKLCHoklch(60.82% 0.209 311.7)
XYZxyz(32.5957, 19.8078, 69.1103)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52DB #82DB52
analogous
#6752DB #AB52DB #DB52C7
triadic
#AB52DB #DBAB52 #52DBAB
tetradic
#AB52DB #DB6752 #82DB52 #52C7DB
square
#AB52DB #DB6752 #82DB52 #52C7DB
split-complementary
#AB52DB #C7DB52 #52DB67
monochromatic
#6B1F94 #8F29C6 #AB52DB #C485E6 #DCB7F0

Accessibility & contrast

On white

4.23
#AB52DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AB52DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52DB#FFFFFF#000000##000000
##AB52DB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1177DF
Deuteranopia (green-blind)
#467DD8
Tritanopia (blue-blind)
#A56C8F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab52db;
/* rgb */ color: rgb(171, 82, 219);
/* oklch */ color: oklch(60.8% 0.209 311.7);
Tailwind
colors: {
  custom: {
    50: '#c888e7',
    500: '#ab52db',
    950: '#000000',
  },
}
SCSS
$custom: #ab52db;
$custom-light: #c888e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52db",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 278.978,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60821,
    "c": 0.20853,
    "h": 311.7
  },
  "luminance": 0.19807
}

Semantic roles & 50–950 ramp

primary
#AB52DB
secondary
#BCDFAA
accent
#E93F7B
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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