#AB52E8#AB52E8

#AB52E8 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.7% C 0.222 H 308.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AB52E8
RGBrgb(171, 82, 232)
HSLhsl(276, 77%, 62%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(26.3%, 64.7%, 0%, 9%)
CIE-LABlab(52.42, 61.32, -61.35)
CIE-LCHlch(52.42, 86.75, 314.99°)
OKLaboklab(61.65% 0.1381 -0.1735)
OKLCHoklch(61.65% 0.222 308.5)
XYZxyz(34.3744, 20.5193, 78.4781)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52E8 #8FE852
analogous
#6052E8 #AB52E8 #E852DA
triadic
#AB52E8 #E8AB52 #52E8AB
tetradic
#AB52E8 #E86052 #8FE852 #52DAE8
square
#AB52E8 #E86052 #8FE852 #52DAE8
split-complementary
#AB52E8 #DAE852 #52E860
monochromatic
#6D16A9 #901EDF #AB52E8 #C588EF #DFBEF6

Accessibility & contrast

On white

4.11
#AB52E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AB52E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52E8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52E8#FFFFFF#000000##000000
##AB52E81.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AED
Deuteranopia (green-blind)
#377EE5
Tritanopia (blue-blind)
#A27196
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ab52e8;
/* rgb */ color: rgb(171, 82, 232);
/* oklch */ color: oklch(61.7% 0.222 308.5);
Tailwind
colors: {
  custom: {
    50: '#c888f0',
    500: '#ab52e8',
    950: '#000000',
  },
}
SCSS
$custom: #ab52e8;
$custom-light: #c888f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52e8",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 275.6,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61654,
    "c": 0.22171,
    "h": 308.5
  },
  "luminance": 0.20519
}

Semantic roles & 50–950 ramp

primary
#AB52E8
secondary
#C6E7AF
accent
#D90D60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AB52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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