#AB42A2#AB42A2

#AB42A2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.6% C 0.178 H 331.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AB42A2
RGBrgb(171, 66, 162)
HSLhsl(305, 44%, 46%)
HSVhsv(305, 61%, 67%)
CMYKcmyk(0%, 61.4%, 5.3%, 32.9%)
CIE-LABlab(45.86, 54.85, -31.35)
CIE-LCHlch(45.86, 63.18, 330.25°)
OKLaboklab(55.63% 0.1562 -0.0859)
OKLCHoklch(55.63% 0.178 331.2)
XYZxyz(25.2643, 15.1648, 35.7718)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42A2 #42AB4B
analogous
#8042AB #AB42A2 #AB426E
triadic
#AB42A2 #A2AB42 #42A2AB
tetradic
#AB42A2 #AB8042 #42AB4B #426EAB
square
#AB42A2 #AB8042 #42AB4B #426EAB
split-complementary
#AB42A2 #6EAB42 #42AB80
monochromatic
#53204E #7F3178 #AB42A2 #C466BC #D592CF

Accessibility & contrast

On white

5.21
#AB42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AB42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42A2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42A2#FFFFFF#000000##FFFFFF
##AB42A21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#B24C6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ab42a2;
/* rgb */ color: rgb(171, 66, 162);
/* oklch */ color: oklch(55.6% 0.178 331.2);
Tailwind
colors: {
  custom: {
    50: '#c77dbe',
    500: '#ab42a2',
    950: '#000000',
  },
}
SCSS
$custom: #ab42a2;
$custom-light: #c77dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42a2",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 305.143,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55634,
    "c": 0.17829,
    "h": 331.2
  },
  "luminance": 0.15163
}

Semantic roles & 50–950 ramp

primary
#AB42A2
secondary
#88C08D
accent
#D45F54
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AB42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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