#AB4EBC#AB4EBC

#AB4EBC is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.5% C 0.184 H 321.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AB4EBC
RGBrgb(171, 78, 188)
HSLhsl(291, 45%, 52%)
HSVhsv(291, 59%, 74%)
CMYKcmyk(9%, 58.5%, 0%, 26.3%)
CIE-LABlab(49.18, 54.09, -41.39)
CIE-LCHlch(49.18, 68.11, 322.58°)
OKLaboklab(58.48% 0.1432 -0.1151)
OKLCHoklch(58.48% 0.184 321.2)
XYZxyz(28.5950, 17.7389, 49.4849)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EBC #5FBC4E
analogous
#744EBC #AB4EBC #BC4E96
triadic
#AB4EBC #BCAB4E #4EBCAB
tetradic
#AB4EBC #BC744E #5FBC4E #4E96BC
square
#AB4EBC #BC744E #5FBC4E #4E96BC
split-complementary
#AB4EBC #96BC4E #4EBC74
monochromatic
#5E2768 #863895 #AB4EBC #C07ACD #D5A7DE

Accessibility & contrast

On white

4.62
#AB4EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AB4EBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EBC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EBC#FFFFFF#000000##FFFFFF
##AB4EBC1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBF
Deuteranopia (green-blind)
#5978B9
Tritanopia (blue-blind)
#AD5F7E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4ebc;
/* rgb */ color: rgb(171, 78, 188);
/* oklch */ color: oklch(58.5% 0.184 321.2);
Tailwind
colors: {
  custom: {
    50: '#c785d0',
    500: '#ab4ebc',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ebc;
$custom-light: #c785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ebc",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 188
  },
  "hsl": {
    "h": 290.727,
    "s": 45.082,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58483,
    "c": 0.1837,
    "h": 321.2
  },
  "luminance": 0.17738
}

Semantic roles & 50–950 ramp

primary
#AB4EBC
secondary
#A2CB9B
accent
#D55367
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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