#AB34C6#AB34C6

#AB34C6 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.226 H 319.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AB34C6
RGBrgb(171, 52, 198)
HSLhsl(289, 58%, 49%)
HSVhsv(289, 74%, 78%)
CMYKcmyk(13.6%, 73.7%, 0%, 22.4%)
CIE-LABlab(45.90, 66.74, -52.43)
CIE-LCHlch(45.90, 84.87, 321.85°)
OKLaboklab(56.31% 0.1718 -0.1471)
OKLCHoklch(56.31% 0.226 319.4)
XYZxyz(28.2143, 15.1925, 54.8614)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34C6 #4FC634
analogous
#6234C6 #AB34C6 #C63498
triadic
#AB34C6 #C6AB34 #34C6AB
tetradic
#AB34C6 #C66234 #4FC634 #3498C6
square
#AB34C6 #C66234 #4FC634 #3498C6
split-complementary
#AB34C6 #98C634 #34C662
monochromatic
#571B65 #812796 #AB34C6 #C062D6 #D492E2

Accessibility & contrast

On white

5.20
#AB34C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AB34C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34C6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34C6#FFFFFF#000000##FFFFFF
##AB34C61.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CA
Deuteranopia (green-blind)
#3F71C3
Tritanopia (blue-blind)
#AB527B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab34c6;
/* rgb */ color: rgb(171, 52, 198);
/* oklch */ color: oklch(56.3% 0.226 319.4);
Tailwind
colors: {
  custom: {
    50: '#c877d8',
    500: '#ab34c6',
    950: '#000000',
  },
}
SCSS
$custom: #ab34c6;
$custom-light: #c877d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34c6",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 288.904,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.22616,
    "h": 319.4
  },
  "luminance": 0.15191
}

Semantic roles & 50–950 ramp

primary
#AB34C6
secondary
#95CD89
accent
#E24663
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AB34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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