#AB42D8#AB42D8

#AB42D8 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.226 H 313.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AB42D8
RGBrgb(171, 66, 216)
HSLhsl(282, 66%, 55%)
HSVhsv(282, 69%, 85%)
CMYKcmyk(20.8%, 69.4%, 0%, 15.3%)
CIE-LABlab(48.90, 64.93, -57.95)
CIE-LCHlch(48.90, 87.03, 318.25°)
OKLaboklab(58.81% 0.1565 -0.1634)
OKLCHoklch(58.81% 0.226 313.8)
XYZxyz(31.1353, 17.5132, 66.6927)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42D8 #6FD842
analogous
#6042D8 #AB42D8 #D842BA
triadic
#AB42D8 #D8AB42 #42D8AB
tetradic
#AB42D8 #D86042 #6FD842 #42BAD8
square
#AB42D8 #D86042 #6FD842 #42BAD8
split-complementary
#AB42D8 #BAD842 #42D860
monochromatic
#651B84 #8B26B7 #AB42D8 #C275E2 #D8A7ED

Accessibility & contrast

On white

4.66
#AB42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AB42D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42D8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42D8#FFFFFF#000000##FFFFFF
##AB42D81.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#3877D5
Tritanopia (blue-blind)
#A76189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab42d8;
/* rgb */ color: rgb(171, 66, 216);
/* oklch */ color: oklch(58.8% 0.226 313.8);
Tailwind
colors: {
  custom: {
    50: '#c87fe5',
    500: '#ab42d8',
    950: '#000000',
  },
}
SCSS
$custom: #ab42d8;
$custom-light: #c87fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42d8",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 282,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.22624,
    "h": 313.8
  },
  "luminance": 0.17512
}

Semantic roles & 50–950 ramp

primary
#AB42D8
secondary
#AEDA9C
accent
#E93F72
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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