#AB42CF#AB42CF

#AB42CF is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.2% C 0.218 H 316.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AB42CF
RGBrgb(171, 66, 207)
HSLhsl(285, 59%, 54%)
HSVhsv(285, 68%, 81%)
CMYKcmyk(17.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(48.34, 63.13, -53.71)
CIE-LCHlch(48.34, 82.89, 319.61°)
OKLaboklab(58.22% 0.1572 -0.1509)
OKLCHoklch(58.22% 0.218 316.2)
XYZxyz(30.0036, 17.0605, 60.7319)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB42CF #66CF42
analogous
#6442CF #AB42CF #CF42AC
triadic
#AB42CF #CFAB42 #42CFAB
tetradic
#AB42CF #CF6442 #66CF42 #42ACCF
square
#AB42CF #CF6442 #66CF42 #42ACCF
split-complementary
#AB42CF #ACCF42 #42CF64
monochromatic
#611F78 #892BA9 #AB42CF #C173DB #D6A4E8

Accessibility & contrast

On white

4.76
#AB42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AB42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB42CF
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB42CF#FFFFFF#000000##FFFFFF
##AB42CF1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#4276CC
Tritanopia (blue-blind)
#A95E84
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ab42cf;
/* rgb */ color: rgb(171, 66, 207);
/* oklch */ color: oklch(58.2% 0.218 316.2);
Tailwind
colors: {
  custom: {
    50: '#c87fde',
    500: '#ab42cf',
    950: '#000000',
  },
}
SCSS
$custom: #ab42cf;
$custom-light: #c87fde;
$custom-dark: #000000;
JSON
{
  "hex": "#ab42cf",
  "rgb": {
    "r": 171,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 284.681,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.21794,
    "h": 316.2
  },
  "luminance": 0.17059
}

Semantic roles & 50–950 ramp

primary
#AB42CF
secondary
#A8D598
accent
#E3456D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AB42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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