#AB42C0#AB42C0

#AB42C0 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.3% C 0.204 H 320.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AB42C0
RGBrgb(171, 66, 192)
HSLhsl(290, 50%, 51%)
HSVhsv(290, 66%, 75%)
CMYKcmyk(10.9%, 65.6%, 0%, 24.7%)
CIE-LABlab(47.45, 60.23, -46.47)
CIE-LCHlch(47.45, 76.07, 322.35°)
OKLaboklab(57.3% 0.1578 -0.1298)
OKLCHoklch(57.3% 0.204 320.6)
XYZxyz(28.2561, 16.3615, 51.5287)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42C0 #57C042
analogous
#6C42C0 #AB42C0 #C04296
triadic
#AB42C0 #C0AB42 #42C0AB
tetradic
#AB42C0 #C06C42 #57C042 #4296C0
square
#AB42C0 #C06C42 #57C042 #4296C0
split-complementary
#AB42C0 #96C042 #42C06C
monochromatic
#5A2266 #833194 #AB42C0 #BF70CF #D49EDF

Accessibility & contrast

On white

4.92
#AB42C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AB42C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42C0
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42C0#FFFFFF#000000##FFFFFF
##AB42C01.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C69C4
Deuteranopia (green-blind)
#4E74BD
Tritanopia (blue-blind)
#AC587B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ab42c0;
/* rgb */ color: rgb(171, 66, 192);
/* oklch */ color: oklch(57.3% 0.204 320.6);
Tailwind
colors: {
  custom: {
    50: '#c77ed3',
    500: '#ab42c0',
    950: '#000000',
  },
}
SCSS
$custom: #ab42c0;
$custom-light: #c77ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42c0",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 290,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.57298,
    "c": 0.20428,
    "h": 320.6
  },
  "luminance": 0.1636
}

Semantic roles & 50–950 ramp

primary
#AB42C0
secondary
#9CCB93
accent
#DA4E65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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