#AB5ECA#AB5ECA

#AB5ECA is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.4% C 0.173 H 315.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AB5ECA
RGBrgb(171, 94, 202)
HSLhsl(283, 50%, 58%)
HSVhsv(283, 53%, 79%)
CMYKcmyk(15.3%, 53.5%, 0%, 20.8%)
CIE-LABlab(52.87, 49.00, -43.61)
CIE-LCHlch(52.87, 65.59, 318.33°)
OKLaboklab(61.43% 0.1232 -0.1216)
OKLCHoklch(61.43% 0.173 315.4)
XYZxyz(31.4563, 20.9286, 58.2482)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB5ECA #7DCA5E
analogous
#755ECA #AB5ECA #CA5EB3
triadic
#AB5ECA #CAAB5E #5ECAAB
tetradic
#AB5ECA #CA755E #7DCA5E #5EB3CA
square
#AB5ECA #CA755E #7DCA5E #5EB3CA
split-complementary
#AB5ECA #B3CA5E #5ECA75
monochromatic
#692B83 #8F3AB1 #AB5ECA #C38CD9 #DBBAE8

Accessibility & contrast

On white

4.05
#AB5ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AB5ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB5ECA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB5ECA#FFFFFF#000000##000000
##AB5ECA1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#457ACE
Deuteranopia (green-blind)
#5E80C7
Tritanopia (blue-blind)
#A96F8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ab5eca;
/* rgb */ color: rgb(171, 94, 202);
/* oklch */ color: oklch(61.4% 0.173 315.4);
Tailwind
colors: {
  custom: {
    50: '#c68fda',
    500: '#ab5eca',
    950: '#000000',
  },
}
SCSS
$custom: #ab5eca;
$custom-light: #c68fda;
$custom-dark: #000000;
JSON
{
  "hex": "#ab5eca",
  "rgb": {
    "r": 171,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 282.778,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61428,
    "c": 0.1731,
    "h": 315.4
  },
  "luminance": 0.20928
}

Semantic roles & 50–950 ramp

primary
#AB5ECA
secondary
#B9D7AC
accent
#DA4E76
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130D15
muted
#827D83

Preview Lab

Preview with #AB5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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