#AB34DB#AB34DB

#AB34DB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.7% C 0.244 H 313.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AB34DB
RGBrgb(171, 52, 219)
HSLhsl(283, 70%, 53%)
HSVhsv(283, 76%, 86%)
CMYKcmyk(21.9%, 76.3%, 0%, 14.1%)
CIE-LABlab(47.27, 70.72, -62.29)
CIE-LCHlch(47.27, 94.24, 318.63°)
OKLaboklab(57.72% 0.169 -0.176)
OKLCHoklch(57.72% 0.244 313.8)
XYZxyz(30.8065, 16.2294, 68.5139)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34DB #64DB34
analogous
#5734DB #AB34DB #DB34B8
triadic
#AB34DB #DBAB34 #34DBAB
tetradic
#AB34DB #DB5734 #64DB34 #34B8DB
square
#AB34DB #DB5734 #64DB34 #34B8DB
split-complementary
#AB34DB #B8DB34 #34DB57
monochromatic
#60167E #8820B2 #AB34DB #C168E4 #D69CED

Accessibility & contrast

On white

4.95
#AB34DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AB34DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34DB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34DB#FFFFFF#000000##FFFFFF
##AB34DB1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#2473D7
Tritanopia (blue-blind)
#A65B87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab34db;
/* rgb */ color: rgb(171, 52, 219);
/* oklch */ color: oklch(57.7% 0.244 313.8);
Tailwind
colors: {
  custom: {
    50: '#c978e7',
    500: '#ab34db',
    950: '#000000',
  },
}
SCSS
$custom: #ab34db;
$custom-light: #c978e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34db",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 219
  },
  "hsl": {
    "h": 282.754,
    "s": 69.874,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57717,
    "c": 0.24404,
    "h": 313.8
  },
  "luminance": 0.16228
}

Semantic roles & 50–950 ramp

primary
#AB34DB
secondary
#A6D991
accent
#ED3B6E
background
#FCF7FE
surface
#F9EEFD
border
#D2C9D5
text
#140A16
muted
#827C84

Preview Lab

Preview with #AB34DB

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

Preview Lab → · Contrast checker → · Palette generator →

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