#AB4EB8#AB4EB8

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

Color values

HEX#AB4EB8
RGBrgb(171, 78, 184)
HSLhsl(293, 43%, 51%)
HSVhsv(293, 58%, 72%)
CMYKcmyk(7.1%, 57.6%, 0%, 27.8%)
CIE-LABlab(48.97, 53.33, -39.40)
CIE-LCHlch(48.97, 66.30, 323.54°)
OKLaboklab(58.26% 0.1429 -0.1093)
OKLCHoklch(58.26% 0.18 322.6)
XYZxyz(28.1698, 17.5688, 47.2454)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EB8 #5BB84E
analogous
#764EB8 #AB4EB8 #B84E90
triadic
#AB4EB8 #B8AB4E #4EB8AB
tetradic
#AB4EB8 #B8764E #5BB84E #4E90B8
square
#AB4EB8 #B8764E #5BB84E #4E90B8
split-complementary
#AB4EB8 #90B84E #4EB876
monochromatic
#5C2864 #85398F #AB4EB8 #C07ACA #D4A5DB

Accessibility & contrast

On white

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

On black

4.51
#AB4EB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AB4EB8#FFFFFF#000000##FFFFFF
##AB4EB81.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6DBB
Deuteranopia (green-blind)
#5C78B5
Tritanopia (blue-blind)
#AD5D7C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab4eb8;
/* rgb */ color: rgb(171, 78, 184);
/* oklch */ color: oklch(58.3% 0.180 322.6);
Tailwind
colors: {
  custom: {
    50: '#c784ce',
    500: '#ab4eb8',
    950: '#000000',
  },
}
SCSS
$custom: #ab4eb8;
$custom-light: #c784ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4eb8",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 292.642,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.58263,
    "c": 0.17991,
    "h": 322.6
  },
  "luminance": 0.17567
}

Semantic roles & 50–950 ramp

primary
#AB4EB8
secondary
#9FC89A
accent
#D35565
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B13
muted
#827C82

Preview Lab

Preview with #AB4EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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