#AB52FF#AB52FF

#AB52FF is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 63.2% C 0.245 H 303.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AB52FF
RGBrgb(171, 82, 255)
HSLhsl(271, 100%, 66%)
HSVhsv(271, 68%, 100%)
CMYKcmyk(32.9%, 67.8%, 0%, 0%)
CIE-LABlab(53.93, 66.44, -71.75)
CIE-LCHlch(53.93, 97.79, 312.80°)
OKLaboklab(63.22% 0.1357 -0.204)
OKLCHoklch(63.22% 0.245 303.6)
XYZxyz(37.8577, 21.9126, 96.8235)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52FF #A6FF52
analogous
#5452FF #AB52FF #FF52FD
triadic
#AB52FF #FFAB52 #52FFAB
tetradic
#AB52FF #FF5452 #A6FF52 #52FDFF
square
#AB52FF #FF5452 #A6FF52 #52FDFF
split-complementary
#AB52FF #FDFF52 #52FF54
monochromatic
#6E00D7 #8D15FF #AB52FF #C98FFF #E6CCFF

Accessibility & contrast

On white

3.90
#AB52FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#AB52FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52FF
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52FF#FFFFFF#000000##000000
##AB52FF1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0081FB
Tritanopia (blue-blind)
#9B7AA3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ab52ff;
/* rgb */ color: rgb(171, 82, 255);
/* oklch */ color: oklch(63.2% 0.245 303.6);
Tailwind
colors: {
  custom: {
    50: '#ca89ff',
    500: '#ab52ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab52ff;
$custom-light: #ca89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52ff",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 270.867,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63221,
    "c": 0.24503,
    "h": 303.6
  },
  "luminance": 0.21913
}

Semantic roles & 50–950 ramp

primary
#AB52FF
secondary
#D6F3BA
accent
#E6006F
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AB52FF

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

Preview Lab → · Contrast checker → · Palette generator →

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