#AB42BB#AB42BB

#AB42BB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 57.0% C 0.200 H 322.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AB42BB
RGBrgb(171, 66, 187)
HSLhsl(292, 48%, 50%)
HSVhsv(292, 65%, 73%)
CMYKcmyk(8.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(47.16, 59.29, -44.01)
CIE-LCHlch(47.16, 73.84, 323.42°)
OKLaboklab(57% 0.1578 -0.1226)
OKLCHoklch(57% 0.2 322.1)
XYZxyz(27.7115, 16.1437, 48.6605)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42BB #52BB42
analogous
#6F42BB #AB42BB #BB428F
triadic
#AB42BB #BBAB42 #42BBAB
tetradic
#AB42BB #BB6F42 #52BB42 #428FBB
square
#AB42BB #BB6F42 #52BB42 #428FBB
split-complementary
#AB42BB #8FBB42 #42BB6F
monochromatic
#582261 #82328E #AB42BB #C06ECC #D39CDC

Accessibility & contrast

On white

4.97
#AB42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AB42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42BB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42BB#FFFFFF#000000##FFFFFF
##AB42BB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2468BF
Deuteranopia (green-blind)
#5174B8
Tritanopia (blue-blind)
#AD5679
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab42bb;
/* rgb */ color: rgb(171, 66, 187);
/* oklch */ color: oklch(57.0% 0.200 322.1);
Tailwind
colors: {
  custom: {
    50: '#c77ed0',
    500: '#ab42bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab42bb;
$custom-light: #c77ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42bb",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 292.066,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.57003,
    "c": 0.19981,
    "h": 322.1
  },
  "luminance": 0.16142
}

Semantic roles & 50–950 ramp

primary
#AB42BB
secondary
#98C891
accent
#D75062
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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