#AB52E5#AB52E5

#AB52E5 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.5% C 0.219 H 309.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AB52E5
RGBrgb(171, 82, 229)
HSLhsl(276, 74%, 61%)
HSVhsv(276, 64%, 90%)
CMYKcmyk(25.3%, 64.2%, 0%, 10.2%)
CIE-LABlab(52.23, 60.67, -59.97)
CIE-LCHlch(52.23, 85.31, 315.33°)
OKLaboklab(61.46% 0.1383 -0.1694)
OKLCHoklch(61.46% 0.219 309.2)
XYZxyz(33.9519, 20.3503, 76.2530)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52E5 #8CE552
analogous
#6152E5 #AB52E5 #E552D5
triadic
#AB52E5 #E5AB52 #52E5AB
tetradic
#AB52E5 #E56152 #8CE552 #52D5E5
square
#AB52E5 #E56152 #8CE552 #52D5E5
split-complementary
#AB52E5 #D5E552 #52E561
monochromatic
#6D19A4 #9021D9 #AB52E5 #C587ED #DFBCF5

Accessibility & contrast

On white

4.14
#AB52E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AB52E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52E5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52E5#FFFFFF#000000##000000
##AB52E51.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#3B7EE2
Tritanopia (blue-blind)
#A37095
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab52e5;
/* rgb */ color: rgb(171, 82, 229);
/* oklch */ color: oklch(61.5% 0.219 309.2);
Tailwind
colors: {
  custom: {
    50: '#c888ee',
    500: '#ab52e5',
    950: '#000000',
  },
}
SCSS
$custom: #ab52e5;
$custom-light: #c888ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52e5",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 276.327,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61458,
    "c": 0.21866,
    "h": 309.2
  },
  "luminance": 0.2035
}

Semantic roles & 50–950 ramp

primary
#AB52E5
secondary
#C4E5AE
accent
#D6105E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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