#AB52DE#AB52DE

#AB52DE is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.0% C 0.212 H 310.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AB52DE
RGBrgb(171, 82, 222)
HSLhsl(278, 68%, 60%)
HSVhsv(278, 63%, 87%)
CMYKcmyk(23%, 63.1%, 0%, 12.9%)
CIE-LABlab(51.80, 59.16, -56.71)
CIE-LCHlch(51.80, 81.95, 316.21°)
OKLaboklab(61.01% 0.1386 -0.1598)
OKLCHoklch(61.01% 0.212 310.9)
XYZxyz(32.9942, 19.9672, 71.2090)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52DE #85DE52
analogous
#6552DE #AB52DE #DE52CB
triadic
#AB52DE #DEAB52 #52DEAB
tetradic
#AB52DE #DE6552 #85DE52 #52CBDE
square
#AB52DE #DE6552 #85DE52 #52CBDE
split-complementary
#AB52DE #CBDE52 #52DE65
monochromatic
#6C1D99 #9027CC #AB52DE #C485E8 #DDB9F2

Accessibility & contrast

On white

4.21
#AB52DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AB52DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52DE
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52DE#FFFFFF#000000##000000
##AB52DE1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0477E2
Deuteranopia (green-blind)
#437DDB
Tritanopia (blue-blind)
#A56E91
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab52de;
/* rgb */ color: rgb(171, 82, 222);
/* oklch */ color: oklch(61.0% 0.212 310.9);
Tailwind
colors: {
  custom: {
    50: '#c888e9',
    500: '#ab52de',
    950: '#000000',
  },
}
SCSS
$custom: #ab52de;
$custom-light: #c888e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52de",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 278.143,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.6101,
    "c": 0.21157,
    "h": 310.9
  },
  "luminance": 0.19966
}

Semantic roles & 50–950 ramp

primary
#AB52DE
secondary
#BFE1AB
accent
#EB3D7C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52DE

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

Preview Lab → · Contrast checker → · Palette generator →

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