#AB34C2#AB34C2

#AB34C2 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.223 H 320.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#AB34C2
RGBrgb(171, 52, 194)
HSLhsl(290, 58%, 48%)
HSVhsv(290, 73%, 76%)
CMYKcmyk(11.9%, 73.2%, 0%, 23.9%)
CIE-LABlab(45.65, 66.01, -50.50)
CIE-LCHlch(45.65, 83.11, 322.58°)
OKLaboklab(56.05% 0.1721 -0.1415)
OKLCHoklch(56.05% 0.223 320.6)
XYZxyz(27.7590, 15.0104, 52.4636)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34C2 #4BC234
analogous
#6434C2 #AB34C2 #C23492
triadic
#AB34C2 #C2AB34 #34C2AB
tetradic
#AB34C2 #C26434 #4BC234 #3492C2
square
#AB34C2 #C26434 #4BC234 #3492C2
split-complementary
#AB34C2 #92C234 #34C264
monochromatic
#561A61 #802792 #AB34C2 #C15FD4 #D48FE1

Accessibility & contrast

On white

5.25
#AB34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#AB34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34C2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34C2#FFFFFF#000000##FFFFFF
##AB34C21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#4370BF
Tritanopia (blue-blind)
#AC5079
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ab34c2;
/* rgb */ color: rgb(171, 52, 194);
/* oklch */ color: oklch(56.0% 0.223 320.6);
Tailwind
colors: {
  custom: {
    50: '#c877d5',
    500: '#ab34c2',
    950: '#000000',
  },
}
SCSS
$custom: #ab34c2;
$custom-light: #c877d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34c2",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 290.282,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56049,
    "c": 0.22279,
    "h": 320.6
  },
  "luminance": 0.15009
}

Semantic roles & 50–950 ramp

primary
#AB34C2
secondary
#91CC86
accent
#E14760
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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