#AB42B2#AB42B2

#AB42B2 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.192 H 325.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AB42B2
RGBrgb(171, 66, 178)
HSLhsl(296, 46%, 48%)
HSVhsv(296, 63%, 70%)
CMYKcmyk(3.9%, 62.9%, 0%, 30.2%)
CIE-LABlab(46.67, 57.64, -39.52)
CIE-LCHlch(46.67, 69.89, 325.56°)
OKLaboklab(56.49% 0.1575 -0.1095)
OKLCHoklch(56.49% 0.192 325.2)
XYZxyz(26.7781, 15.7703, 43.7444)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42B2 #49B242
analogous
#7342B2 #AB42B2 #B24281
triadic
#AB42B2 #B2AB42 #42B2AB
tetradic
#AB42B2 #B27342 #49B242 #4281B2
square
#AB42B2 #B27342 #49B242 #4281B2
split-complementary
#AB42B2 #81B242 #42B273
monochromatic
#552159 #803185 #AB42B2 #C26AC8 #D496D8

Accessibility & contrast

On white

5.06
#AB42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AB42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42B2#FFFFFF#000000##FFFFFF
##AB42B21.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#AF5274
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ab42b2;
/* rgb */ color: rgb(171, 66, 178);
/* oklch */ color: oklch(56.5% 0.192 325.2);
Tailwind
colors: {
  custom: {
    50: '#c77ec9',
    500: '#ab42b2',
    950: '#000000',
  },
}
SCSS
$custom: #ab42b2;
$custom-light: #c77ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42b2",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 296.25,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56489,
    "c": 0.19186,
    "h": 325.2
  },
  "luminance": 0.15769
}

Semantic roles & 50–950 ramp

primary
#AB42B2
secondary
#8FC48C
accent
#D6525A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AB42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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