#AB42DA#AB42DA

#AB42DA is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.228 H 313.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AB42DA
RGBrgb(171, 66, 218)
HSLhsl(281, 67%, 56%)
HSVhsv(281, 70%, 85%)
CMYKcmyk(21.6%, 69.7%, 0%, 14.5%)
CIE-LABlab(49.03, 65.34, -58.89)
CIE-LCHlch(49.03, 87.96, 317.97°)
OKLaboklab(58.94% 0.1563 -0.1661)
OKLCHoklch(58.94% 0.228 313.3)
XYZxyz(31.3955, 17.6173, 68.0627)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42DA #71DA42
analogous
#5F42DA #AB42DA #DA42BD
triadic
#AB42DA #DAAB42 #42DAAB
tetradic
#AB42DA #DA5F42 #71DA42 #42BDDA
square
#AB42DA #DA5F42 #71DA42 #42BDDA
split-complementary
#AB42DA #BDDA42 #42DA5F
monochromatic
#661A87 #8C24BA #AB42DA #C275E4 #D8A8EE

Accessibility & contrast

On white

4.64
#AB42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AB42DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42DA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42DA#FFFFFF#000000##FFFFFF
##AB42DA1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDE
Deuteranopia (green-blind)
#3677D7
Tritanopia (blue-blind)
#A6628A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab42da;
/* rgb */ color: rgb(171, 66, 218);
/* oklch */ color: oklch(58.9% 0.228 313.3);
Tailwind
colors: {
  custom: {
    50: '#c87fe6',
    500: '#ab42da',
    950: '#000000',
  },
}
SCSS
$custom: #ab42da;
$custom-light: #c87fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42da",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 281.447,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5894,
    "c": 0.22808,
    "h": 313.3
  },
  "luminance": 0.17616
}

Semantic roles & 50–950 ramp

primary
#AB42DA
secondary
#B0DB9C
accent
#EA3E73
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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