#AB52D7#AB52D7

#AB52D7 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.6% C 0.204 H 312.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB52D7
RGBrgb(171, 82, 215)
HSLhsl(280, 62%, 58%)
HSVhsv(280, 62%, 84%)
CMYKcmyk(20.5%, 61.9%, 0%, 15.7%)
CIE-LABlab(51.38, 57.67, -53.40)
CIE-LCHlch(51.38, 78.60, 317.20°)
OKLaboklab(60.57% 0.1388 -0.1501)
OKLCHoklch(60.57% 0.204 312.8)
XYZxyz(32.0755, 19.5997, 66.3703)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB52D7 #7ED752
analogous
#6852D7 #AB52D7 #D752C1
triadic
#AB52D7 #D7AB52 #52D7AB
tetradic
#AB52D7 #D76852 #7ED752 #52C1D7
square
#AB52D7 #D76852 #7ED752 #52C1D7
split-complementary
#AB52D7 #C1D752 #52D768
monochromatic
#6A218E #8F2CC0 #AB52D7 #C384E2 #DBB5EE

Accessibility & contrast

On white

4.27
#AB52D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AB52D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB52D7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB52D7#FFFFFF#000000##000000
##AB52D71.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C76DB
Deuteranopia (green-blind)
#497CD4
Tritanopia (blue-blind)
#A66B8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ab52d7;
/* rgb */ color: rgb(171, 82, 215);
/* oklch */ color: oklch(60.6% 0.204 312.8);
Tailwind
colors: {
  custom: {
    50: '#c788e4',
    500: '#ab52d7',
    950: '#000000',
  },
}
SCSS
$custom: #ab52d7;
$custom-light: #c788e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab52d7",
  "rgb": {
    "r": 171,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 280.15,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60573,
    "c": 0.20449,
    "h": 312.8
  },
  "luminance": 0.19599
}

Semantic roles & 50–950 ramp

primary
#AB52D7
secondary
#B9DDA8
accent
#E64278
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AB52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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