#AB4CBA#AB4CBA

#AB4CBA is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.1% C 0.185 H 322.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AB4CBA
RGBrgb(171, 76, 186)
HSLhsl(292, 44%, 51%)
HSVhsv(292, 59%, 73%)
CMYKcmyk(8.1%, 59.1%, 0%, 27.1%)
CIE-LABlab(48.73, 54.65, -40.94)
CIE-LCHlch(48.73, 68.28, 323.16°)
OKLaboklab(58.12% 0.1456 -0.1137)
OKLCHoklch(58.12% 0.185 322)
XYZxyz(28.2410, 17.3734, 48.3107)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CBA #5BBA4C
analogous
#744CBA #AB4CBA #BA4C92
triadic
#AB4CBA #BAAB4C #4CBAAB
tetradic
#AB4CBA #BA744C #5BBA4C #4C92BA
square
#AB4CBA #BA744C #5BBA4C #4C92BA
split-complementary
#AB4CBA #92BA4C #4CBA74
monochromatic
#5C2765 #853891 #AB4CBA #C078CB #D4A4DC

Accessibility & contrast

On white

4.69
#AB4CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AB4CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4CBA
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CBA#FFFFFF#000000##FFFFFF
##AB4CBA1.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBD
Deuteranopia (green-blind)
#5977B7
Tritanopia (blue-blind)
#AD5C7C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4cba;
/* rgb */ color: rgb(171, 76, 186);
/* oklch */ color: oklch(58.1% 0.185 322.0);
Tailwind
colors: {
  custom: {
    50: '#c783cf',
    500: '#ab4cba',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cba;
$custom-light: #c783cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cba",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 291.818,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5812,
    "c": 0.18479,
    "h": 322
  },
  "luminance": 0.17372
}

Semantic roles & 50–950 ramp

primary
#AB4CBA
secondary
#9FC999
accent
#D45465
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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