#8D42A2#8D42A2

#8D42A2 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.5% C 0.162 H 318.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8D42A2
RGBrgb(141, 66, 162)
HSLhsl(287, 42%, 45%)
HSVhsv(287, 59%, 64%)
CMYKcmyk(13%, 59.3%, 0%, 36.5%)
CIE-LABlab(41.48, 46.89, -38.54)
CIE-LCHlch(41.48, 60.70, 320.58°)
OKLaboklab(51.55% 0.1208 -0.1075)
OKLCHoklch(51.55% 0.162 318.3)
XYZxyz(19.4534, 12.1686, 35.4995)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42A2 #57A242
analogous
#5D42A2 #8D42A2 #A24287
triadic
#8D42A2 #A28D42 #42A28D
tetradic
#8D42A2 #A25D42 #57A242 #4287A2
square
#8D42A2 #A25D42 #57A242 #4287A2
split-complementary
#8D42A2 #87A242 #42A25D
monochromatic
#411F4B #673077 #8D42A2 #AB62BF #C28ED1

Accessibility & contrast

On white

6.12
#8D42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8D42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42A2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42A2#FFFFFF#000000##FFFFFF
##8D42A21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5DA5
Deuteranopia (green-blind)
#4764A0
Tritanopia (blue-blind)
#8D516C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8d42a2;
/* rgb */ color: rgb(141, 66, 162);
/* oklch */ color: oklch(51.5% 0.162 318.3);
Tailwind
colors: {
  custom: {
    50: '#b17abe',
    500: '#8d42a2',
    950: '#000000',
  },
}
SCSS
$custom: #8d42a2;
$custom-light: #b17abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42a2",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 286.875,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51548,
    "c": 0.16173,
    "h": 318.3
  },
  "luminance": 0.12168
}

Semantic roles & 50–950 ramp

primary
#8D42A2
secondary
#90BC84
accent
#D25671
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8D42A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8D42A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva