#AB42BC#AB42BC

#AB42BC is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.1% C 0.201 H 321.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AB42BC
RGBrgb(171, 66, 188)
HSLhsl(292, 48%, 50%)
HSVhsv(292, 65%, 74%)
CMYKcmyk(9%, 64.9%, 0%, 26.3%)
CIE-LABlab(47.22, 59.48, -44.50)
CIE-LCHlch(47.22, 74.29, 323.20°)
OKLaboklab(57.06% 0.1578 -0.124)
OKLCHoklch(57.06% 0.201 321.8)
XYZxyz(27.8189, 16.1866, 49.2262)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42BC #53BC42
analogous
#6E42BC #AB42BC #BC4290
triadic
#AB42BC #BCAB42 #42BCAB
tetradic
#AB42BC #BC6E42 #53BC42 #4290BC
square
#AB42BC #BC6E42 #53BC42 #4290BC
split-complementary
#AB42BC #90BC42 #42BC6E
monochromatic
#592261 #82328F #AB42BC #BF6FCC #D39CDC

Accessibility & contrast

On white

4.96
#AB42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#AB42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42BC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42BC#FFFFFF#000000##FFFFFF
##AB42BC1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268C0
Deuteranopia (green-blind)
#5174B9
Tritanopia (blue-blind)
#AD5679
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab42bc;
/* rgb */ color: rgb(171, 66, 188);
/* oklch */ color: oklch(57.1% 0.201 321.8);
Tailwind
colors: {
  custom: {
    50: '#c77ed1',
    500: '#ab42bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab42bc;
$custom-light: #c77ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42bc",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 291.639,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57061,
    "c": 0.2007,
    "h": 321.8
  },
  "luminance": 0.16185
}

Semantic roles & 50–950 ramp

primary
#AB42BC
secondary
#99C991
accent
#D85063
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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