#AB4CBC#AB4CBC

#AB4CBC is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.2% C 0.187 H 321.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AB4CBC
RGBrgb(171, 76, 188)
HSLhsl(291, 46%, 52%)
HSVhsv(291, 60%, 74%)
CMYKcmyk(9%, 59.6%, 0%, 26.3%)
CIE-LABlab(48.83, 55.03, -41.94)
CIE-LCHlch(48.83, 69.19, 322.69°)
OKLaboklab(58.23% 0.1457 -0.1166)
OKLCHoklch(58.23% 0.187 321.3)
XYZxyz(28.4551, 17.4590, 49.4383)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CBC #5DBC4C
analogous
#734CBC #AB4CBC #BC4C95
triadic
#AB4CBC #BCAB4C #4CBCAB
tetradic
#AB4CBC #BC734C #5DBC4C #4C95BC
square
#AB4CBC #BC734C #5DBC4C #4C95BC
split-complementary
#AB4CBC #95BC4C #4CBC73
monochromatic
#5D2767 #863794 #AB4CBC #C079CD #D5A5DD

Accessibility & contrast

On white

4.68
#AB4CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AB4CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4CBC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4CBC#FFFFFF#000000##FFFFFF
##AB4CBC1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356DBF
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#AD5D7D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4cbc;
/* rgb */ color: rgb(171, 76, 188);
/* oklch */ color: oklch(58.2% 0.187 321.3);
Tailwind
colors: {
  custom: {
    50: '#c783d0',
    500: '#ab4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cbc;
$custom-light: #c783d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cbc",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 290.893,
    "s": 45.528,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58232,
    "c": 0.18667,
    "h": 321.3
  },
  "luminance": 0.17458
}

Semantic roles & 50–950 ramp

primary
#AB4CBC
secondary
#A1CA99
accent
#D55366
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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