#AB34A1#AB34A1

#AB34A1 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 54.1% C 0.196 H 331.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#AB34A1
RGBrgb(171, 52, 161)
HSLhsl(305, 53%, 44%)
HSVhsv(305, 70%, 67%)
CMYKcmyk(0%, 69.6%, 5.8%, 32.9%)
CIE-LABlab(43.78, 60.33, -34.01)
CIE-LCHlch(43.78, 69.26, 330.59°)
OKLaboklab(54.11% 0.1724 -0.0935)
OKLCHoklch(54.11% 0.196 331.5)
XYZxyz(24.4556, 13.6890, 35.0655)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34A1 #34AB3E
analogous
#7934AB #AB34A1 #AB3465
triadic
#AB34A1 #A1AB34 #34A1AB
tetradic
#AB34A1 #AB7934 #34AB3E #3465AB
square
#AB34A1 #AB7934 #34AB3E #3465AB
split-complementary
#AB34A1 #65AB34 #34AB79
monochromatic
#4D1749 #7C2675 #AB34A1 #CA52C0 #D981D1

Accessibility & contrast

On white

5.62
#AB34A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AB34A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34A1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34A1#FFFFFF#000000##FFFFFF
##AB34A11.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA4
Deuteranopia (green-blind)
#586D9E
Tritanopia (blue-blind)
#B24166
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ab34a1;
/* rgb */ color: rgb(171, 52, 161);
/* oklch */ color: oklch(54.1% 0.196 331.5);
Tailwind
colors: {
  custom: {
    50: '#c776bd',
    500: '#ab34a1',
    950: '#000000',
  },
}
SCSS
$custom: #ab34a1;
$custom-light: #c776bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34a1",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 305.042,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54112,
    "c": 0.19614,
    "h": 331.5
  },
  "luminance": 0.13687
}

Semantic roles & 50–950 ramp

primary
#AB34A1
secondary
#79C27F
accent
#DD574B
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AB34A1

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

Preview Lab → · Contrast checker → · Palette generator →

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