#AB52DF#AB52DF

#AB52DF is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.1% C 0.213 H 310.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AB52DF
RGBrgb(171, 82, 223)
HSLhsl(278, 69%, 60%)
HSVhsv(278, 63%, 87%)
CMYKcmyk(23.3%, 63.2%, 0%, 12.5%)
CIE-LABlab(51.86, 59.37, -57.17)
CIE-LCHlch(51.86, 82.43, 316.08°)
OKLaboklab(61.07% 0.1386 -0.1612)
OKLCHoklch(61.07% 0.213 310.7)
XYZxyz(33.1286, 20.0209, 71.9170)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52DF #86DF52
analogous
#6452DF #AB52DF #DF52CD
triadic
#AB52DF #DFAB52 #52DFAB
tetradic
#AB52DF #DF6452 #86DF52 #52CDDF
square
#AB52DF #DF6452 #86DF52 #52CDDF
split-complementary
#AB52DF #CDDF52 #52DF64
monochromatic
#6C1D9A #9026CE #AB52DF #C486E9 #DDB9F2

Accessibility & contrast

On white

4.20
#AB52DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AB52DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52DF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52DF#FFFFFF#000000##000000
##AB52DF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E3
Deuteranopia (green-blind)
#427DDC
Tritanopia (blue-blind)
#A46E91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ab52df;
/* rgb */ color: rgb(171, 82, 223);
/* oklch */ color: oklch(61.1% 0.213 310.7);
Tailwind
colors: {
  custom: {
    50: '#c888ea',
    500: '#ab52df',
    950: '#000000',
  },
}
SCSS
$custom: #ab52df;
$custom-light: #c888ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52df",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 277.872,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61073,
    "c": 0.21258,
    "h": 310.7
  },
  "luminance": 0.2002
}

Semantic roles & 50–950 ramp

primary
#AB52DF
secondary
#BFE2AB
accent
#EC3C7D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AB52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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