#AB4CBB#AB4CBB

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

Color values

HEX#AB4CBB
RGBrgb(171, 76, 187)
HSLhsl(291, 45%, 52%)
HSVhsv(291, 59%, 73%)
CMYKcmyk(8.6%, 59.4%, 0%, 26.7%)
CIE-LABlab(48.78, 54.84, -41.44)
CIE-LCHlch(48.78, 68.74, 322.92°)
OKLaboklab(58.18% 0.1457 -0.1152)
OKLCHoklch(58.18% 0.186 321.7)
XYZxyz(28.3477, 17.4160, 48.8725)
Luminance0.1741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4CBB #5CBB4C
analogous
#744CBB #AB4CBB #BB4C94
triadic
#AB4CBB #BBAB4C #4CBBAB
tetradic
#AB4CBB #BB744C #5CBB4C #4C94BB
square
#AB4CBB #BB744C #5CBB4C #4C94BB
split-complementary
#AB4CBB #94BB4C #4CBB74
monochromatic
#5D2766 #853892 #AB4CBB #C078CC #D5A5DD

Accessibility & contrast

On white

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

On black

4.48
#AB4CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB4CBB#FFFFFF#000000##FFFFFF
##AB4CBB1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBE
Deuteranopia (green-blind)
#5878B8
Tritanopia (blue-blind)
#AD5D7C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4cbb;
/* rgb */ color: rgb(171, 76, 187);
/* oklch */ color: oklch(58.2% 0.186 321.7);
Tailwind
colors: {
  custom: {
    50: '#c783d0',
    500: '#ab4cbb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4cbb;
$custom-light: #c783d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4cbb",
  "rgb": {
    "r": 171,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 291.351,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58176,
    "c": 0.18572,
    "h": 321.7
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB4CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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