#AB34CD#AB34CD

#AB34CD is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.8% C 0.232 H 317.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AB34CD
RGBrgb(171, 52, 205)
HSLhsl(287, 60%, 50%)
HSVhsv(287, 75%, 80%)
CMYKcmyk(16.6%, 74.6%, 0%, 19.6%)
CIE-LABlab(46.34, 68.05, -55.76)
CIE-LCHlch(46.34, 87.97, 320.67°)
OKLaboklab(56.76% 0.171 -0.1569)
OKLCHoklch(56.76% 0.232 317.5)
XYZxyz(29.0404, 15.5230, 59.2123)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34CD #56CD34
analogous
#5F34CD #AB34CD #CD34A2
triadic
#AB34CD #CDAB34 #34CDAB
tetradic
#AB34CD #CD5F34 #56CD34 #34A2CD
square
#AB34CD #CD5F34 #56CD34 #34A2CD
split-complementary
#AB34CD #A2CD34 #34CD5F
monochromatic
#5A1B6C #83279D #AB34CD #BF65D9 #D496E5

Accessibility & contrast

On white

5.12
#AB34CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AB34CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34CD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34CD#FFFFFF#000000##FFFFFF
##AB34CD1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#3871CA
Tritanopia (blue-blind)
#AA557F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab34cd;
/* rgb */ color: rgb(171, 52, 205);
/* oklch */ color: oklch(56.8% 0.232 317.5);
Tailwind
colors: {
  custom: {
    50: '#c878dd',
    500: '#ab34cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab34cd;
$custom-light: #c878dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34cd",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 286.667,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.56763,
    "c": 0.23208,
    "h": 317.5
  },
  "luminance": 0.15522
}

Semantic roles & 50–950 ramp

primary
#AB34CD
secondary
#9BD18C
accent
#E44468
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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