#AB52FB#AB52FB

#AB52FB is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 62.9% C 0.241 H 304.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AB52FB
RGBrgb(171, 82, 251)
HSLhsl(272, 95%, 65%)
HSVhsv(272, 67%, 98%)
CMYKcmyk(31.9%, 67.3%, 0%, 1.6%)
CIE-LABlab(53.66, 65.54, -69.97)
CIE-LCHlch(53.66, 95.87, 313.13°)
OKLaboklab(62.94% 0.1362 -0.1988)
OKLCHoklch(62.94% 0.241 304.4)
XYZxyz(37.2205, 21.6577, 93.4676)
Luminance0.2166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52FB #A2FB52
analogous
#5752FB #AB52FB #FB52F6
triadic
#AB52FB #FBAB52 #52FBAB
tetradic
#AB52FB #FB5752 #A2FB52 #52F6FB
square
#AB52FB #FB5752 #A2FB52 #52F6FB
split-complementary
#AB52FB #F6FB52 #52FB57
monochromatic
#6F05CE #8E16FA #AB52FB #C88EFC #E5CAFE

Accessibility & contrast

On white

3.94
#AB52FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AB52FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52FB
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52FB#FFFFFF#000000##000000
##AB52FB1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0880F7
Tritanopia (blue-blind)
#9C78A0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ab52fb;
/* rgb */ color: rgb(171, 82, 251);
/* oklch */ color: oklch(62.9% 0.241 304.4);
Tailwind
colors: {
  custom: {
    50: '#c989fe',
    500: '#ab52fb',
    950: '#000000',
  },
}
SCSS
$custom: #ab52fb;
$custom-light: #c989fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52fb",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 251
  },
  "hsl": {
    "h": 271.598,
    "s": 95.48,
    "l": 65.294
  },
  "oklch": {
    "l": 0.6294,
    "c": 0.24098,
    "h": 304.4
  },
  "luminance": 0.21658
}

Semantic roles & 50–950 ramp

primary
#AB52FB
secondary
#D3F1B8
accent
#E6006D
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C18
muted
#827D86

Preview Lab

Preview with #AB52FB

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

Preview Lab → · Contrast checker → · Palette generator →

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