#AB52E4#AB52E4

#AB52E4 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.218 H 309.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB52E4
RGBrgb(171, 82, 228)
HSLhsl(277, 73%, 61%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(25%, 64%, 0%, 10.6%)
CIE-LABlab(52.17, 60.45, -59.50)
CIE-LCHlch(52.17, 84.83, 315.45°)
OKLaboklab(61.39% 0.1383 -0.168)
OKLCHoklch(61.39% 0.218 309.5)
XYZxyz(33.8127, 20.2946, 75.5198)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52E4 #8BE452
analogous
#6252E4 #AB52E4 #E452D4
triadic
#AB52E4 #E4AB52 #52E4AB
tetradic
#AB52E4 #E46252 #8BE452 #52D4E4
square
#AB52E4 #E46252 #8BE452 #52D4E4
split-complementary
#AB52E4 #D4E452 #52E462
monochromatic
#6D19A2 #9022D7 #AB52E4 #C587EC #DEBCF5

Accessibility & contrast

On white

4.15
#AB52E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AB52E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52E4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52E4#FFFFFF#000000##000000
##AB52E41.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#3C7EE1
Tritanopia (blue-blind)
#A37094
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab52e4;
/* rgb */ color: rgb(171, 82, 228);
/* oklch */ color: oklch(61.4% 0.218 309.5);
Tailwind
colors: {
  custom: {
    50: '#c888ed',
    500: '#ab52e4',
    950: '#000000',
  },
}
SCSS
$custom: #ab52e4;
$custom-light: #c888ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52e4",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 276.575,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61394,
    "c": 0.21765,
    "h": 309.5
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

primary
#AB52E4
secondary
#C3E5AD
accent
#D5105D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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