#AB42BA#AB42BA

#AB42BA is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.199 H 322.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AB42BA
RGBrgb(171, 66, 186)
HSLhsl(293, 48%, 49%)
HSVhsv(293, 65%, 73%)
CMYKcmyk(8.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(47.11, 59.11, -43.51)
CIE-LCHlch(47.11, 73.40, 323.64°)
OKLaboklab(56.95% 0.1578 -0.1212)
OKLCHoklch(56.95% 0.199 322.5)
XYZxyz(27.6048, 16.1010, 48.0986)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42BA #51BA42
analogous
#6F42BA #AB42BA #BA428D
triadic
#AB42BA #BAAB42 #42BAAB
tetradic
#AB42BA #BA6F42 #51BA42 #428DBA
square
#AB42BA #BA6F42 #51BA42 #428DBA
split-complementary
#AB42BA #8DBA42 #42BA6F
monochromatic
#582260 #81328D #AB42BA #C06ECB #D39BDB

Accessibility & contrast

On white

4.98
#AB42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AB42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42BA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42BA#FFFFFF#000000##FFFFFF
##AB42BA1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#5274B7
Tritanopia (blue-blind)
#AD5578
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab42ba;
/* rgb */ color: rgb(171, 66, 186);
/* oklch */ color: oklch(56.9% 0.199 322.5);
Tailwind
colors: {
  custom: {
    50: '#c77ecf',
    500: '#ab42ba',
    950: '#000000',
  },
}
SCSS
$custom: #ab42ba;
$custom-light: #c77ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42ba",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 292.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56945,
    "c": 0.19892,
    "h": 322.5
  },
  "luminance": 0.161
}

Semantic roles & 50–950 ramp

primary
#AB42BA
secondary
#97C890
accent
#D75161
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AB42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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