#AB4CB5#AB4CB5

#AB4CB5 is a mid, vivid purple. Relative luminance 0.172; OKLCH L 57.8% C 0.180 H 323.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AB4CB5
RGBrgb(171, 76, 181)
HSLhsl(294, 42%, 50%)
HSVhsv(294, 58%, 71%)
CMYKcmyk(5.5%, 58%, 0%, 29%)
CIE-LABlab(48.47, 53.70, -38.44)
CIE-LCHlch(48.47, 66.04, 324.40°)
OKLaboklab(57.85% 0.1453 -0.1065)
OKLCHoklch(57.85% 0.18 323.8)
XYZxyz(27.7188, 17.1645, 45.5601)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CB5 #56B54C
analogous
#774CB5 #AB4CB5 #B54C8A
triadic
#AB4CB5 #B5AB4C #4CB5AB
tetradic
#AB4CB5 #B5774C #56B54C #4C8AB5
square
#AB4CB5 #B5774C #56B54C #4C8AB5
split-complementary
#AB4CB5 #8AB54C #4CB577
monochromatic
#5A275F #83398B #AB4CB5 #BF77C7 #D4A3D9

Accessibility & contrast

On white

4.74
#AB4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AB4CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4CB5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CB5#FFFFFF#000000##FFFFFF
##AB4CB51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB8
Deuteranopia (green-blind)
#5C77B2
Tritanopia (blue-blind)
#AE5B79
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4cb5;
/* rgb */ color: rgb(171, 76, 181);
/* oklch */ color: oklch(57.8% 0.180 323.8);
Tailwind
colors: {
  custom: {
    50: '#c783cb',
    500: '#ab4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cb5;
$custom-light: #c783cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cb5",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 294.286,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57846,
    "c": 0.18013,
    "h": 323.8
  },
  "luminance": 0.17163
}

Semantic roles & 50–950 ramp

primary
#AB4CB5
secondary
#9BC697
accent
#D15662
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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