#AB42C8#AB42C8

#AB42C8 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.212 H 318.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AB42C8
RGBrgb(171, 66, 200)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 67%, 78%)
CMYKcmyk(14.5%, 67%, 0%, 21.6%)
CIE-LABlab(47.91, 61.77, -50.36)
CIE-LCHlch(47.91, 79.69, 320.81°)
OKLaboklab(57.79% 0.1576 -0.1411)
OKLCHoklch(57.79% 0.212 318.2)
XYZxyz(29.1667, 16.7258, 56.3244)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42C8 #5FC842
analogous
#6842C8 #AB42C8 #C842A2
triadic
#AB42C8 #C8AB42 #42C8AB
tetradic
#AB42C8 #C86842 #5FC842 #42A2C8
square
#AB42C8 #C86842 #5FC842 #42A2C8
split-complementary
#AB42C8 #A2C842 #42C868
monochromatic
#5E206F #862E9F #AB42C8 #C071D6 #D5A1E4

Accessibility & contrast

On white

4.83
#AB42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AB42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42C8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42C8#FFFFFF#000000##FFFFFF
##AB42C81.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036BCC
Deuteranopia (green-blind)
#4875C5
Tritanopia (blue-blind)
#AA5B80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ab42c8;
/* rgb */ color: rgb(171, 66, 200);
/* oklch */ color: oklch(57.8% 0.212 318.2);
Tailwind
colors: {
  custom: {
    50: '#c87ed9',
    500: '#ab42c8',
    950: '#000000',
  },
}
SCSS
$custom: #ab42c8;
$custom-light: #c87ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42c8",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 287.015,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57785,
    "c": 0.21154,
    "h": 318.2
  },
  "luminance": 0.16724
}

Semantic roles & 50–950 ramp

primary
#AB42C8
secondary
#A2D096
accent
#DE4A6A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AB42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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