#AB42CA#AB42CA

#AB42CA is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.213 H 317.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AB42CA
RGBrgb(171, 66, 202)
HSLhsl(286, 56%, 53%)
HSVhsv(286, 67%, 79%)
CMYKcmyk(15.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(48.03, 62.15, -51.32)
CIE-LCHlch(48.03, 80.60, 320.45°)
OKLaboklab(57.91% 0.1575 -0.1439)
OKLCHoklch(57.91% 0.213 317.6)
XYZxyz(29.4019, 16.8199, 57.5635)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42CA #61CA42
analogous
#6742CA #AB42CA #CA42A5
triadic
#AB42CA #CAAB42 #42CAAB
tetradic
#AB42CA #CA6742 #61CA42 #42A5CA
square
#AB42CA #CA6742 #61CA42 #42A5CA
split-complementary
#AB42CA #A5CA42 #42CA67
monochromatic
#5F2072 #872DA2 #AB42CA #C072D7 #D5A2E5

Accessibility & contrast

On white

4.81
#AB42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AB42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42CA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42CA#FFFFFF#000000##FFFFFF
##AB42CA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#4675C7
Tritanopia (blue-blind)
#AA5C81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab42ca;
/* rgb */ color: rgb(171, 66, 202);
/* oklch */ color: oklch(57.9% 0.213 317.6);
Tailwind
colors: {
  custom: {
    50: '#c87edb',
    500: '#ab42ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab42ca;
$custom-light: #c87edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42ca",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 286.324,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57909,
    "c": 0.21336,
    "h": 317.6
  },
  "luminance": 0.16819
}

Semantic roles & 50–950 ramp

primary
#AB42CA
secondary
#A4D196
accent
#DF486B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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