#AB4ECE#AB4ECE

#AB4ECE is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.5% C 0.201 H 315.6°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AB4ECE
RGBrgb(171, 78, 206)
HSLhsl(284, 57%, 56%)
HSVhsv(284, 62%, 81%)
CMYKcmyk(17%, 62.1%, 0%, 19.2%)
CIE-LABlab(50.17, 57.67, -50.19)
CIE-LCHlch(50.17, 76.46, 318.97°)
OKLaboklab(59.53% 0.1437 -0.1407)
OKLCHoklch(59.53% 0.201 315.6)
XYZxyz(30.6578, 18.5640, 60.3488)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB4ECE #71CE4E
analogous
#6B4ECE #AB4ECE #CE4EB1
triadic
#AB4ECE #CEAB4E #4ECEAB
tetradic
#AB4ECE #CE6B4E #71CE4E #4EB1CE
square
#AB4ECE #CE6B4E #71CE4E #4EB1CE
split-complementary
#AB4ECE #B1CE4E #4ECE6B
monochromatic
#66237F #8C30AE #AB4ECE #C27EDB #D8AEE9

Accessibility & contrast

On white

4.46
#AB4ECE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#AB4ECE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB4ECE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB4ECE#FFFFFF#000000##000000
##AB4ECE1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2272D2
Deuteranopia (green-blind)
#4D7ACB
Tritanopia (blue-blind)
#A96587
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ab4ece;
/* rgb */ color: rgb(171, 78, 206);
/* oklch */ color: oklch(59.5% 0.201 315.6);
Tailwind
colors: {
  custom: {
    50: '#c785dd',
    500: '#ab4ece',
    950: '#000000',
  },
}
SCSS
$custom: #ab4ece;
$custom-light: #c785dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab4ece",
  "rgb": {
    "r": 171,
    "g": 78,
    "b": 206
  },
  "hsl": {
    "h": 283.594,
    "s": 56.637,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59528,
    "c": 0.20113,
    "h": 315.6
  },
  "luminance": 0.18563
}

Semantic roles & 50–950 ramp

primary
#AB4ECE
secondary
#B0D7A1
accent
#E04871
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB4ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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