#AB42CE#AB42CE

#AB42CE is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.217 H 316.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AB42CE
RGBrgb(171, 66, 206)
HSLhsl(285, 59%, 53%)
HSVhsv(285, 68%, 81%)
CMYKcmyk(17%, 68%, 0%, 19.2%)
CIE-LABlab(48.27, 62.94, -53.23)
CIE-LCHlch(48.27, 82.43, 319.78°)
OKLaboklab(58.16% 0.1573 -0.1495)
OKLCHoklch(58.16% 0.217 316.4)
XYZxyz(29.8817, 17.0118, 60.0901)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42CE #65CE42
analogous
#6542CE #AB42CE #CE42AB
triadic
#AB42CE #CEAB42 #42CEAB
tetradic
#AB42CE #CE6542 #65CE42 #42ABCE
square
#AB42CE #CE6542 #65CE42 #42ABCE
split-complementary
#AB42CE #ABCE42 #42CE65
monochromatic
#611F77 #882BA7 #AB42CE #C173DB #D6A3E7

Accessibility & contrast

On white

4.77
#AB42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AB42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42CE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42CE#FFFFFF#000000##FFFFFF
##AB42CE1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#4376CB
Tritanopia (blue-blind)
#A95D83
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab42ce;
/* rgb */ color: rgb(171, 66, 206);
/* oklch */ color: oklch(58.2% 0.217 316.4);
Tailwind
colors: {
  custom: {
    50: '#c87ede',
    500: '#ab42ce',
    950: '#000000',
  },
}
SCSS
$custom: #ab42ce;
$custom-light: #c87ede;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42ce",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 285,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58161,
    "c": 0.21702,
    "h": 316.4
  },
  "luminance": 0.17011
}

Semantic roles & 50–950 ramp

primary
#AB42CE
secondary
#A7D498
accent
#E2466D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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