#AB52D8#AB52D8

#AB52D8 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.6% C 0.205 H 312.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB52D8
RGBrgb(171, 82, 216)
HSLhsl(280, 63%, 58%)
HSVhsv(280, 62%, 85%)
CMYKcmyk(20.8%, 62%, 0%, 15.3%)
CIE-LABlab(51.44, 57.88, -53.88)
CIE-LCHlch(51.44, 79.08, 317.05°)
OKLaboklab(60.63% 0.1388 -0.1515)
OKLCHoklch(60.63% 0.206 312.5)
XYZxyz(32.2044, 19.6512, 67.0490)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D8 #7FD852
analogous
#6852D8 #AB52D8 #D852C2
triadic
#AB52D8 #D8AB52 #52D8AB
tetradic
#AB52D8 #D86852 #7FD852 #52C2D8
square
#AB52D8 #D86852 #7FD852 #52C2D8
split-complementary
#AB52D8 #C2D852 #52D868
monochromatic
#6A208F #8F2CC1 #AB52D8 #C384E3 #DBB6EF

Accessibility & contrast

On white

4.26
#AB52D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AB52D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D8#FFFFFF#000000##000000
##AB52D81.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A76DC
Deuteranopia (green-blind)
#487DD5
Tritanopia (blue-blind)
#A66B8E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ab52d8;
/* rgb */ color: rgb(171, 82, 216);
/* oklch */ color: oklch(60.6% 0.205 312.5);
Tailwind
colors: {
  custom: {
    50: '#c788e5',
    500: '#ab52d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d8;
$custom-light: #c788e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d8",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 279.851,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60634,
    "c": 0.2055,
    "h": 312.5
  },
  "luminance": 0.1965
}

Semantic roles & 50–950 ramp

primary
#AB52D8
secondary
#BADDA8
accent
#E64279
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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