#AB42C7#AB42C7

#AB42C7 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.211 H 318.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AB42C7
RGBrgb(171, 66, 199)
HSLhsl(287, 54%, 52%)
HSVhsv(287, 67%, 78%)
CMYKcmyk(14.1%, 66.8%, 0%, 22%)
CIE-LABlab(47.85, 61.57, -49.87)
CIE-LCHlch(47.85, 79.24, 320.99°)
OKLaboklab(57.72% 0.1576 -0.1397)
OKLCHoklch(57.72% 0.211 318.4)
XYZxyz(29.0502, 16.6792, 55.7109)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42C7 #5EC742
analogous
#6842C7 #AB42C7 #C742A1
triadic
#AB42C7 #C7AB42 #42C7AB
tetradic
#AB42C7 #C76842 #5EC742 #42A1C7
square
#AB42C7 #C76842 #5EC742 #42A1C7
split-complementary
#AB42C7 #A1C742 #42C768
monochromatic
#5E216E #862F9D #AB42C7 #C071D5 #D5A0E3

Accessibility & contrast

On white

4.84
#AB42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AB42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42C7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42C7#FFFFFF#000000##FFFFFF
##AB42C71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086BCB
Deuteranopia (green-blind)
#4975C4
Tritanopia (blue-blind)
#AB5A7F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab42c7;
/* rgb */ color: rgb(171, 66, 199);
/* oklch */ color: oklch(57.7% 0.211 318.4);
Tailwind
colors: {
  custom: {
    50: '#c87ed9',
    500: '#ab42c7',
    950: '#000000',
  },
}
SCSS
$custom: #ab42c7;
$custom-light: #c87ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42c7",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 287.368,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57723,
    "c": 0.21062,
    "h": 318.4
  },
  "luminance": 0.16678
}

Semantic roles & 50–950 ramp

primary
#AB42C7
secondary
#A2D095
accent
#DE4A69
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A15
muted
#827C83

Preview Lab

Preview with #AB42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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