#AB4EC2#AB4EC2

#AB4EC2 is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.8% C 0.189 H 319.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AB4EC2
RGBrgb(171, 78, 194)
HSLhsl(288, 49%, 53%)
HSVhsv(288, 60%, 76%)
CMYKcmyk(11.9%, 59.8%, 0%, 23.9%)
CIE-LABlab(49.50, 55.27, -44.36)
CIE-LCHlch(49.50, 70.87, 321.25°)
OKLaboklab(58.82% 0.1435 -0.1237)
OKLCHoklch(58.82% 0.189 319.2)
XYZxyz(29.2553, 18.0030, 52.9624)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4EC2 #65C24E
analogous
#714EC2 #AB4EC2 #C24E9F
triadic
#AB4EC2 #C2AB4E #4EC2AB
tetradic
#AB4EC2 #C2714E #65C24E #4E9FC2
square
#AB4EC2 #C2714E #65C24E #4E9FC2
split-complementary
#AB4EC2 #9FC24E #4EC271
monochromatic
#61266F #88369D #AB4EC2 #C17CD2 #D6A9E1

Accessibility & contrast

On white

4.56
#AB4EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AB4EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4EC2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4EC2#FFFFFF#000000##000000
##AB4EC21.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#326FC6
Deuteranopia (green-blind)
#5679BF
Tritanopia (blue-blind)
#AB6181
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ab4ec2;
/* rgb */ color: rgb(171, 78, 194);
/* oklch */ color: oklch(58.8% 0.189 319.2);
Tailwind
colors: {
  custom: {
    50: '#c785d5',
    500: '#ab4ec2',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ec2;
$custom-light: #c785d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ec2",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 288.103,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58822,
    "c": 0.18946,
    "h": 319.2
  },
  "luminance": 0.18002
}

Semantic roles & 50–950 ramp

primary
#AB4EC2
secondary
#A7CF9D
accent
#D8506B
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #AB4EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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