#AB34CC#AB34CC

#AB34CC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.7% C 0.231 H 317.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AB34CC
RGBrgb(171, 52, 204)
HSLhsl(287, 60%, 50%)
HSVhsv(287, 75%, 80%)
CMYKcmyk(16.2%, 74.5%, 0%, 20%)
CIE-LABlab(46.28, 67.86, -55.29)
CIE-LCHlch(46.28, 87.53, 320.83°)
OKLaboklab(56.7% 0.1712 -0.1555)
OKLCHoklch(56.7% 0.231 317.7)
XYZxyz(28.9201, 15.4748, 58.5786)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB34CC #55CC34
analogous
#5F34CC #AB34CC #CC34A1
triadic
#AB34CC #CCAB34 #34CCAB
tetradic
#AB34CC #CC5F34 #55CC34 #34A1CC
square
#AB34CC #CC5F34 #55CC34 #34A1CC
split-complementary
#AB34CC #A1CC34 #34CC5F
monochromatic
#591B6B #82279C #AB34CC #BF65D8 #D396E5

Accessibility & contrast

On white

5.13
#AB34CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#AB34CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB34CC
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB34CC#FFFFFF#000000##FFFFFF
##AB34CC1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#3971C9
Tritanopia (blue-blind)
#AA547E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ab34cc;
/* rgb */ color: rgb(171, 52, 204);
/* oklch */ color: oklch(56.7% 0.231 317.7);
Tailwind
colors: {
  custom: {
    50: '#c878dc',
    500: '#ab34cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab34cc;
$custom-light: #c878dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab34cc",
  "rgb": {
    "r": 171,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 286.974,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56697,
    "c": 0.23123,
    "h": 317.7
  },
  "luminance": 0.15474
}

Semantic roles & 50–950 ramp

primary
#AB34CC
secondary
#9BD08C
accent
#E34567
background
#FCF7FD
surface
#F9EEFB
border
#D2C9D4
text
#140A15
muted
#827C83

Preview Lab

Preview with #AB34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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