#AB42D7#AB42D7

#AB42D7 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.225 H 314.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AB42D7
RGBrgb(171, 66, 215)
HSLhsl(282, 65%, 55%)
HSVhsv(282, 69%, 84%)
CMYKcmyk(20.5%, 69.3%, 0%, 15.7%)
CIE-LABlab(48.84, 64.73, -57.49)
CIE-LCHlch(48.84, 86.57, 318.39°)
OKLaboklab(58.74% 0.1566 -0.162)
OKLCHoklch(58.74% 0.225 314)
XYZxyz(31.0065, 17.4617, 66.0139)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42D7 #6ED742
analogous
#6042D7 #AB42D7 #D742B8
triadic
#AB42D7 #D7AB42 #42D7AB
tetradic
#AB42D7 #D76042 #6ED742 #42B8D7
square
#AB42D7 #D76042 #6ED742 #42B8D7
split-complementary
#AB42D7 #B8D742 #42D760
monochromatic
#641C83 #8B26B5 #AB42D7 #C175E2 #D8A7EC

Accessibility & contrast

On white

4.67
#AB42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AB42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42D7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42D7#FFFFFF#000000##FFFFFF
##AB42D71.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#3977D4
Tritanopia (blue-blind)
#A76188
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ab42d7;
/* rgb */ color: rgb(171, 66, 215);
/* oklch */ color: oklch(58.7% 0.225 314.0);
Tailwind
colors: {
  custom: {
    50: '#c87fe4',
    500: '#ab42d7',
    950: '#000000',
  },
}
SCSS
$custom: #ab42d7;
$custom-light: #c87fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42d7",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 282.282,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.58742,
    "c": 0.22531,
    "h": 314
  },
  "luminance": 0.17461
}

Semantic roles & 50–950 ramp

primary
#AB42D7
secondary
#AEDA9B
accent
#E84071
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AB42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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