#AB4CB2#AB4CB2

#AB4CB2 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.7% C 0.177 H 324.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AB4CB2
RGBrgb(171, 76, 178)
HSLhsl(296, 40%, 50%)
HSVhsv(296, 57%, 70%)
CMYKcmyk(3.9%, 57.3%, 0%, 30.2%)
CIE-LABlab(48.31, 53.14, -36.93)
CIE-LCHlch(48.31, 64.71, 325.20°)
OKLaboklab(57.68% 0.145 -0.1021)
OKLCHoklch(57.68% 0.177 324.8)
XYZxyz(27.4143, 17.0427, 43.9564)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CB2 #53B24C
analogous
#784CB2 #AB4CB2 #B24C86
triadic
#AB4CB2 #B2AB4C #4CB2AB
tetradic
#AB4CB2 #B2784C #53B24C #4C86B2
square
#AB4CB2 #B2784C #53B24C #4C86B2
split-complementary
#AB4CB2 #86B24C #4CB278
monochromatic
#59275C #823A87 #AB4CB2 #BF76C5 #D3A1D7

Accessibility & contrast

On white

4.76
#AB4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AB4CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4CB2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CB2#FFFFFF#000000##FFFFFF
##AB4CB21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#5D77AF
Tritanopia (blue-blind)
#AF5978
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab4cb2;
/* rgb */ color: rgb(171, 76, 178);
/* oklch */ color: oklch(57.7% 0.177 324.8);
Tailwind
colors: {
  custom: {
    50: '#c783c9',
    500: '#ab4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cb2;
$custom-light: #c783c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cb2",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 295.882,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57684,
    "c": 0.17737,
    "h": 324.8
  },
  "luminance": 0.17041
}

Semantic roles & 50–950 ramp

primary
#AB4CB2
secondary
#99C496
accent
#D05860
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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