#AB34B8#AB34B8

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

Color values

HEX#AB34B8
RGBrgb(171, 52, 184)
HSLhsl(294, 56%, 46%)
HSVhsv(294, 72%, 72%)
CMYKcmyk(7.1%, 71.7%, 0%, 27.8%)
CIE-LABlab(45.05, 64.21, -45.62)
CIE-LCHlch(45.05, 78.77, 324.61°)
OKLaboklab(55.43% 0.1727 -0.1272)
OKLCHoklch(55.43% 0.215 323.6)
XYZxyz(26.6735, 14.5762, 46.7467)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34B8 #41B834
analogous
#6934B8 #AB34B8 #B83483
triadic
#AB34B8 #B8AB34 #34B8AB
tetradic
#AB34B8 #B86934 #41B834 #3483B8
square
#AB34B8 #B86934 #41B834 #3483B8
split-complementary
#AB34B8 #83B834 #34B869
monochromatic
#521959 #7F2788 #AB34B8 #C459D0 #D589DE

Accessibility & contrast

On white

5.36
#AB34B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AB34B8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34B8#FFFFFF#000000##FFFFFF
##AB34B81.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BC
Deuteranopia (green-blind)
#4B6FB5
Tritanopia (blue-blind)
#AE4B73
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ab34b8;
/* rgb */ color: rgb(171, 52, 184);
/* oklch */ color: oklch(55.4% 0.214 323.6);
Tailwind
colors: {
  custom: {
    50: '#c877ce',
    500: '#ab34b8',
    950: '#000000',
  },
}
SCSS
$custom: #ab34b8;
$custom-light: #c877ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34b8",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 294.091,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55429,
    "c": 0.2145,
    "h": 323.6
  },
  "luminance": 0.14575
}

Semantic roles & 50–950 ramp

primary
#AB34B8
secondary
#87C880
accent
#DF4957
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AB34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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