#AB34B7#AB34B7

#AB34B7 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.214 H 323.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AB34B7
RGBrgb(171, 52, 183)
HSLhsl(295, 56%, 46%)
HSVhsv(295, 72%, 72%)
CMYKcmyk(6.6%, 71.6%, 0%, 28.2%)
CIE-LABlab(44.99, 64.04, -45.13)
CIE-LCHlch(44.99, 78.34, 324.83°)
OKLaboklab(55.37% 0.1727 -0.1258)
OKLCHoklch(55.37% 0.214 323.9)
XYZxyz(26.5691, 14.5344, 46.1965)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34B7 #40B734
analogous
#6934B7 #AB34B7 #B73481
triadic
#AB34B7 #B7AB34 #34B7AB
tetradic
#AB34B7 #B76934 #40B734 #3481B7
square
#AB34B7 #B76934 #40B734 #3481B7
split-complementary
#AB34B7 #81B734 #34B769
monochromatic
#521958 #7E2687 #AB34B7 #C559D0 #D588DD

Accessibility & contrast

On white

5.38
#AB34B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AB34B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34B7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34B7#FFFFFF#000000##FFFFFF
##AB34B71.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0461BB
Deuteranopia (green-blind)
#4B6FB4
Tritanopia (blue-blind)
#AE4B72
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab34b7;
/* rgb */ color: rgb(171, 52, 183);
/* oklch */ color: oklch(55.4% 0.214 323.9);
Tailwind
colors: {
  custom: {
    50: '#c877cd',
    500: '#ab34b7',
    950: '#000000',
  },
}
SCSS
$custom: #ab34b7;
$custom-light: #c877cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34b7",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 294.504,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.21367,
    "h": 323.9
  },
  "luminance": 0.14533
}

Semantic roles & 50–950 ramp

primary
#AB34B7
secondary
#86C780
accent
#DF4957
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AB34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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