#AB4EBB#AB4EBB

#AB4EBB is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.4% C 0.183 H 321.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#AB4EBB
RGBrgb(171, 78, 187)
HSLhsl(291, 44%, 52%)
HSVhsv(291, 58%, 73%)
CMYKcmyk(8.6%, 58.3%, 0%, 26.7%)
CIE-LABlab(49.13, 53.90, -40.90)
CIE-LCHlch(49.13, 67.66, 322.81°)
OKLaboklab(58.43% 0.1431 -0.1136)
OKLCHoklch(58.43% 0.183 321.6)
XYZxyz(28.4876, 17.6959, 48.9192)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EBB #5EBB4E
analogous
#754EBB #AB4EBB #BB4E94
triadic
#AB4EBB #BBAB4E #4EBBAB
tetradic
#AB4EBB #BB754E #5EBB4E #4E94BB
square
#AB4EBB #BB754E #5EBB4E #4E94BB
split-complementary
#AB4EBB #94BB4E #4EBB75
monochromatic
#5E2867 #863993 #AB4EBB #C07ACC #D5A6DD

Accessibility & contrast

On white

4.63
#AB4EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#AB4EBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB4EBB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EBB#FFFFFF#000000##FFFFFF
##AB4EBB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396EBE
Deuteranopia (green-blind)
#5A78B8
Tritanopia (blue-blind)
#AD5E7D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ab4ebb;
/* rgb */ color: rgb(171, 78, 187);
/* oklch */ color: oklch(58.4% 0.183 321.6);
Tailwind
colors: {
  custom: {
    50: '#c785d0',
    500: '#ab4ebb',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ebb;
$custom-light: #c785d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ebb",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 187
  },
  "hsl": {
    "h": 291.193,
    "s": 44.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58428,
    "c": 0.18276,
    "h": 321.6
  },
  "luminance": 0.17695
}

Semantic roles & 50–950 ramp

primary
#AB4EBB
secondary
#A2CA9B
accent
#D45466
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AB4EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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