#AB42BF#AB42BF

#AB42BF is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.2% C 0.203 H 320.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AB42BF
RGBrgb(171, 66, 191)
HSLhsl(290, 49%, 50%)
HSVhsv(290, 65%, 75%)
CMYKcmyk(10.5%, 65.4%, 0%, 25.1%)
CIE-LABlab(47.39, 60.04, -45.98)
CIE-LCHlch(47.39, 75.63, 322.56°)
OKLaboklab(57.24% 0.1578 -0.1283)
OKLCHoklch(57.24% 0.203 320.9)
XYZxyz(28.1457, 16.3174, 50.9471)
Luminance0.1632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42BF #56BF42
analogous
#6C42BF #AB42BF #BF4294
triadic
#AB42BF #BFAB42 #42BFAB
tetradic
#AB42BF #BF6C42 #56BF42 #4294BF
square
#AB42BF #BF6C42 #56BF42 #4294BF
split-complementary
#AB42BF #94BF42 #42BF6C
monochromatic
#5A2265 #833292 #AB42BF #BF70CE #D49DDE

Accessibility & contrast

On white

4.93
#AB42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AB42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42BF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42BF#FFFFFF#000000##FFFFFF
##AB42BF1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D69C3
Deuteranopia (green-blind)
#4F74BC
Tritanopia (blue-blind)
#AC577B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ab42bf;
/* rgb */ color: rgb(171, 66, 191);
/* oklch */ color: oklch(57.2% 0.203 320.9);
Tailwind
colors: {
  custom: {
    50: '#c77ed3',
    500: '#ab42bf',
    950: '#000000',
  },
}
SCSS
$custom: #ab42bf;
$custom-light: #c77ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42bf",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 290.4,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57238,
    "c": 0.20339,
    "h": 320.9
  },
  "luminance": 0.16316
}

Semantic roles & 50–950 ramp

primary
#AB42BF
secondary
#9BCA93
accent
#D94F65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AB42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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