#AB34A5#AB34A5

#AB34A5 is a mid, vivid purple. Relative luminance 0.138; OKLCH L 54.3% C 0.199 H 330.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AB34A5
RGBrgb(171, 52, 165)
HSLhsl(303, 53%, 44%)
HSVhsv(303, 70%, 67%)
CMYKcmyk(0%, 69.6%, 3.5%, 32.9%)
CIE-LABlab(43.99, 60.98, -36.07)
CIE-LCHlch(43.99, 70.85, 329.39°)
OKLaboklab(54.33% 0.1726 -0.0994)
OKLCHoklch(54.33% 0.199 330.1)
XYZxyz(24.8140, 13.8324, 36.9530)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34A5 #34AB3A
analogous
#7534AB #AB34A5 #AB3469
triadic
#AB34A5 #A5AB34 #34A5AB
tetradic
#AB34A5 #AB7534 #34AB3A #3469AB
square
#AB34A5 #AB7534 #34AB3A #3469AB
split-complementary
#AB34A5 #69AB34 #34AB75
monochromatic
#4D174A #7C2678 #AB34A5 #CA52C4 #D981D4

Accessibility & contrast

On white

5.58
#AB34A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AB34A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34A5
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34A5#FFFFFF#000000##FFFFFF
##AB34A51.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA8
Deuteranopia (green-blind)
#566EA2
Tritanopia (blue-blind)
#B14369
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ab34a5;
/* rgb */ color: rgb(171, 52, 165);
/* oklch */ color: oklch(54.3% 0.199 330.1);
Tailwind
colors: {
  custom: {
    50: '#c776c0',
    500: '#ab34a5',
    950: '#000000',
  },
}
SCSS
$custom: #ab34a5;
$custom-light: #c776c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34a5",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 303.025,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5433,
    "c": 0.19924,
    "h": 330.1
  },
  "luminance": 0.13831
}

Semantic roles & 50–950 ramp

primary
#AB34A5
secondary
#79C27D
accent
#DD524B
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AB34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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