#AB34D6#AB34D6

#AB34D6 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.4% C 0.240 H 315.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AB34D6
RGBrgb(171, 52, 214)
HSLhsl(284, 66%, 52%)
HSVhsv(284, 76%, 84%)
CMYKcmyk(20.1%, 75.7%, 0%, 16.1%)
CIE-LABlab(46.94, 69.76, -59.98)
CIE-LCHlch(46.94, 92.00, 319.31°)
OKLaboklab(57.37% 0.1698 -0.1692)
OKLCHoklch(57.37% 0.24 315.1)
XYZxyz(30.1582, 15.9701, 65.0992)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34D6 #5FD634
analogous
#5A34D6 #AB34D6 #D634B0
triadic
#AB34D6 #D6AB34 #34D6AB
tetradic
#AB34D6 #D65A34 #5FD634 #34B0D6
square
#AB34D6 #D65A34 #5FD634 #34B0D6
split-complementary
#AB34D6 #B0D634 #34D65A
monochromatic
#5E1877 #8622AA #AB34D6 #C067E0 #D59AEB

Accessibility & contrast

On white

5.01
#AB34D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#AB34D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34D6
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34D6#FFFFFF#000000##FFFFFF
##AB34D61.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#2D72D3
Tritanopia (blue-blind)
#A75984
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab34d6;
/* rgb */ color: rgb(171, 52, 214);
/* oklch */ color: oklch(57.4% 0.240 315.1);
Tailwind
colors: {
  custom: {
    50: '#c978e3',
    500: '#ab34d6',
    950: '#000000',
  },
}
SCSS
$custom: #ab34d6;
$custom-light: #c978e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34d6",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 214
  },
  "hsl": {
    "h": 284.074,
    "s": 66.393,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57371,
    "c": 0.23975,
    "h": 315.1
  },
  "luminance": 0.15969
}

Semantic roles & 50–950 ramp

primary
#AB34D6
secondary
#A2D690
accent
#E93E6C
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AB34D6

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

Preview Lab → · Contrast checker → · Palette generator →

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