#AB42D5#AB42D5

#AB42D5 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.223 H 314.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AB42D5
RGBrgb(171, 66, 213)
HSLhsl(283, 64%, 55%)
HSVhsv(283, 69%, 84%)
CMYKcmyk(19.7%, 69%, 0%, 16.5%)
CIE-LABlab(48.71, 64.33, -56.55)
CIE-LCHlch(48.71, 85.65, 318.68°)
OKLaboklab(58.61% 0.1568 -0.1593)
OKLCHoklch(58.61% 0.223 314.5)
XYZxyz(30.7510, 17.3595, 64.6687)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42D5 #6CD542
analogous
#6242D5 #AB42D5 #D542B6
triadic
#AB42D5 #D5AB42 #42D5AB
tetradic
#AB42D5 #D56242 #6CD542 #42B6D5
square
#AB42D5 #D56242 #6CD542 #42B6D5
split-complementary
#AB42D5 #B6D542 #42D562
monochromatic
#641C80 #8B28B2 #AB42D5 #C174E0 #D8A6EB

Accessibility & contrast

On white

4.70
#AB42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#AB42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42D5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42D5#FFFFFF#000000##FFFFFF
##AB42D51.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#3C76D2
Tritanopia (blue-blind)
#A76087
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab42d5;
/* rgb */ color: rgb(171, 66, 213);
/* oklch */ color: oklch(58.6% 0.223 314.5);
Tailwind
colors: {
  custom: {
    50: '#c87fe3',
    500: '#ab42d5',
    950: '#000000',
  },
}
SCSS
$custom: #ab42d5;
$custom-light: #c87fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42d5",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 282.857,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.58611,
    "c": 0.22346,
    "h": 314.5
  },
  "luminance": 0.17358
}

Semantic roles & 50–950 ramp

primary
#AB42D5
secondary
#ACD89A
accent
#E74170
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AB42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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