#AB34B2#AB34B2

#AB34B2 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.210 H 325.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AB34B2
RGBrgb(171, 52, 178)
HSLhsl(297, 55%, 45%)
HSVhsv(297, 71%, 70%)
CMYKcmyk(3.9%, 70.8%, 0%, 30.2%)
CIE-LABlab(44.70, 63.17, -42.65)
CIE-LCHlch(44.70, 76.22, 325.98°)
OKLaboklab(55.07% 0.1729 -0.1185)
OKLCHoklch(55.07% 0.21 325.6)
XYZxyz(26.0579, 14.3300, 43.5043)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34B2 #3BB234
analogous
#6C34B2 #AB34B2 #B2347A
triadic
#AB34B2 #B2AB34 #34B2AB
tetradic
#AB34B2 #B26C34 #3BB234 #347AB2
square
#AB34B2 #B26C34 #3BB234 #347AB2
split-complementary
#AB34B2 #7AB234 #34B26C
monochromatic
#501853 #7D2683 #AB34B2 #C756CE #D785DB

Accessibility & contrast

On white

5.43
#AB34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AB34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34B2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34B2#FFFFFF#000000##FFFFFF
##AB34B21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B6
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#AF4970
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ab34b2;
/* rgb */ color: rgb(171, 52, 178);
/* oklch */ color: oklch(55.1% 0.210 325.6);
Tailwind
colors: {
  custom: {
    50: '#c877c9',
    500: '#ab34b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab34b2;
$custom-light: #c877c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34b2",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 296.667,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5507,
    "c": 0.20959,
    "h": 325.6
  },
  "luminance": 0.14328
}

Semantic roles & 50–950 ramp

primary
#AB34B2
secondary
#81C57D
accent
#DE4A52
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AB34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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