#AB4EB4#AB4EB4

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

Color values

HEX#AB4EB4
RGBrgb(171, 78, 180)
HSLhsl(295, 40%, 51%)
HSVhsv(295, 57%, 71%)
CMYKcmyk(5%, 56.7%, 0%, 29.4%)
CIE-LABlab(48.76, 52.57, -37.39)
CIE-LCHlch(48.76, 64.51, 324.58°)
OKLaboklab(58.05% 0.1426 -0.1035)
OKLCHoklch(58.05% 0.176 324)
XYZxyz(27.7565, 17.4035, 45.0683)
Luminance0.1740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EB4 #57B44E
analogous
#784EB4 #AB4EB4 #B44E8A
triadic
#AB4EB4 #B4AB4E #4EB4AB
tetradic
#AB4EB4 #B4784E #57B44E #4E8AB4
square
#AB4EB4 #B4784E #57B44E #4E8AB4
split-complementary
#AB4EB4 #8AB44E #4EB478
monochromatic
#5A285F #833B8A #AB4EB4 #BF79C6 #D4A4D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB4EB4#FFFFFF#000000##FFFFFF
##AB4EB41.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6DB7
Deuteranopia (green-blind)
#5E78B1
Tritanopia (blue-blind)
#AE5C7A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4eb4;
/* rgb */ color: rgb(171, 78, 180);
/* oklch */ color: oklch(58.0% 0.176 324.0);
Tailwind
colors: {
  custom: {
    50: '#c684cb',
    500: '#ab4eb4',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eb4;
$custom-light: #c684cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eb4",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 180
  },
  "hsl": {
    "h": 294.706,
    "s": 40.476,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58047,
    "c": 0.17616,
    "h": 324
  },
  "luminance": 0.17402
}

Semantic roles & 50–950 ramp

primary
#AB4EB4
secondary
#9CC698
accent
#D05762
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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