#AB34C5#AB34C5

#AB34C5 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.225 H 319.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AB34C5
RGBrgb(171, 52, 197)
HSLhsl(289, 58%, 49%)
HSVhsv(289, 74%, 77%)
CMYKcmyk(13.2%, 73.6%, 0%, 22.7%)
CIE-LABlab(45.83, 66.56, -51.95)
CIE-LCHlch(45.83, 84.43, 322.03°)
OKLaboklab(56.24% 0.1719 -0.1457)
OKLCHoklch(56.24% 0.225 319.7)
XYZxyz(28.0993, 15.1465, 54.2560)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34C5 #4EC534
analogous
#6334C5 #AB34C5 #C53497
triadic
#AB34C5 #C5AB34 #34C5AB
tetradic
#AB34C5 #C56334 #4EC534 #3497C5
square
#AB34C5 #C56334 #4EC534 #3497C5
split-complementary
#AB34C5 #97C534 #34C563
monochromatic
#571A64 #812795 #AB34C5 #C061D5 #D491E2

Accessibility & contrast

On white

5.21
#AB34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AB34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34C5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34C5#FFFFFF#000000##FFFFFF
##AB34C51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#4071C2
Tritanopia (blue-blind)
#AB517A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab34c5;
/* rgb */ color: rgb(171, 52, 197);
/* oklch */ color: oklch(56.2% 0.225 319.7);
Tailwind
colors: {
  custom: {
    50: '#c877d7',
    500: '#ab34c5',
    950: '#000000',
  },
}
SCSS
$custom: #ab34c5;
$custom-light: #c877d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34c5",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 289.241,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56241,
    "c": 0.22532,
    "h": 319.7
  },
  "luminance": 0.15145
}

Semantic roles & 50–950 ramp

primary
#AB34C5
secondary
#94CD88
accent
#E14662
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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