#AB4BC2#AB4BC2

#AB4BC2 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.5% C 0.194 H 319.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AB4BC2
RGBrgb(171, 75, 194)
HSLhsl(288, 49%, 53%)
HSVhsv(288, 61%, 76%)
CMYKcmyk(11.9%, 61.3%, 0%, 23.9%)
CIE-LABlab(48.99, 56.66, -45.17)
CIE-LCHlch(48.99, 72.46, 321.44°)
OKLaboklab(58.45% 0.1472 -0.126)
OKLCHoklch(58.45% 0.194 319.4)
XYZxyz(29.0470, 17.5864, 52.8929)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4BC2 #62C24B
analogous
#6F4BC2 #AB4BC2 #C24B9E
triadic
#AB4BC2 #C2AB4B #4BC2AB
tetradic
#AB4BC2 #C26F4B #62C24B #4B9EC2
square
#AB4BC2 #C26F4B #62C24B #4B9EC2
split-complementary
#AB4BC2 #9EC24B #4BC26F
monochromatic
#60256D #87359B #AB4BC2 #C079D1 #D6A6E1

Accessibility & contrast

On white

4.65
#AB4BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AB4BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4BC2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4BC2#FFFFFF#000000##FFFFFF
##AB4BC21.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6EC6
Deuteranopia (green-blind)
#5378BF
Tritanopia (blue-blind)
#AB5F80
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4bc2;
/* rgb */ color: rgb(171, 75, 194);
/* oklch */ color: oklch(58.5% 0.194 319.4);
Tailwind
colors: {
  custom: {
    50: '#c783d5',
    500: '#ab4bc2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4bc2;
$custom-light: #c783d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4bc2",
  "rgb": {
    "r": 171,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 288.403,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58452,
    "c": 0.1938,
    "h": 319.4
  },
  "luminance": 0.17585
}

Semantic roles & 50–950 ramp

primary
#AB4BC2
secondary
#A5CE9B
accent
#D94F6A
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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