#AB52E6#AB52E6

#AB52E6 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.220 H 309.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AB52E6
RGBrgb(171, 82, 230)
HSLhsl(276, 75%, 61%)
HSVhsv(276, 64%, 90%)
CMYKcmyk(25.7%, 64.3%, 0%, 9.8%)
CIE-LABlab(52.29, 60.89, -60.43)
CIE-LCHlch(52.29, 85.79, 315.22°)
OKLaboklab(61.52% 0.1382 -0.1708)
OKLCHoklch(61.52% 0.22 309)
XYZxyz(34.0920, 20.4063, 76.9904)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52E6 #8DE652
analogous
#6152E6 #AB52E6 #E652D7
triadic
#AB52E6 #E6AB52 #52E6AB
tetradic
#AB52E6 #E66152 #8DE652 #52D7E6
square
#AB52E6 #E66152 #8DE652 #52D7E6
split-complementary
#AB52E6 #D7E652 #52E661
monochromatic
#6D18A6 #9020DB #AB52E6 #C587EE #DFBDF5

Accessibility & contrast

On white

4.13
#AB52E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AB52E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52E6
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52E6#FFFFFF#000000##000000
##AB52E61.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EB
Deuteranopia (green-blind)
#3A7EE3
Tritanopia (blue-blind)
#A27095
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab52e6;
/* rgb */ color: rgb(171, 82, 230);
/* oklch */ color: oklch(61.5% 0.220 309.0);
Tailwind
colors: {
  custom: {
    50: '#c888ef',
    500: '#ab52e6',
    950: '#000000',
  },
}
SCSS
$custom: #ab52e6;
$custom-light: #c888ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52e6",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 276.081,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61524,
    "c": 0.21968,
    "h": 309
  },
  "luminance": 0.20406
}

Semantic roles & 50–950 ramp

primary
#AB52E6
secondary
#C4E6AE
accent
#D70F5E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB52E6

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

Preview Lab → · Contrast checker → · Palette generator →

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