#AB42CC#AB42CC

#AB42CC is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.215 H 317.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AB42CC
RGBrgb(171, 66, 204)
HSLhsl(286, 58%, 53%)
HSVhsv(286, 68%, 80%)
CMYKcmyk(16.2%, 67.6%, 0%, 20%)
CIE-LABlab(48.15, 62.54, -52.28)
CIE-LCHlch(48.15, 81.52, 320.11°)
OKLaboklab(58.03% 0.1574 -0.1467)
OKLCHoklch(58.03% 0.215 317)
XYZxyz(29.6403, 16.9152, 58.8187)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42CC #63CC42
analogous
#6642CC #AB42CC #CC42A8
triadic
#AB42CC #CCAB42 #42CCAB
tetradic
#AB42CC #CC6642 #63CC42 #42A8CC
square
#AB42CC #CC6642 #63CC42 #42A8CC
split-complementary
#AB42CC #A8CC42 #42CC66
monochromatic
#601F74 #882CA4 #AB42CC #C072D9 #D6A2E6

Accessibility & contrast

On white

4.79
#AB42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AB42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42CC
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42CC#FFFFFF#000000##FFFFFF
##AB42CC1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#4575C9
Tritanopia (blue-blind)
#A95C82
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab42cc;
/* rgb */ color: rgb(171, 66, 204);
/* oklch */ color: oklch(58.0% 0.215 317.0);
Tailwind
colors: {
  custom: {
    50: '#c87edc',
    500: '#ab42cc',
    950: '#000000',
  },
}
SCSS
$custom: #ab42cc;
$custom-light: #c87edc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42cc",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 285.652,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58034,
    "c": 0.21519,
    "h": 317
  },
  "luminance": 0.16914
}

Semantic roles & 50–950 ramp

primary
#AB42CC
secondary
#A5D397
accent
#E1476C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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