#8D168E#8D168E

#8D168E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.197 H 327.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8D168E
RGBrgb(141, 22, 142)
HSLhsl(300, 73%, 32%)
HSVhsv(300, 85%, 56%)
CMYKcmyk(0.7%, 84.5%, 0%, 44.3%)
CIE-LABlab(34.38, 59.82, -37.72)
CIE-LCHlch(34.38, 70.72, 327.76°)
OKLaboklab(46.06% 0.1665 -0.1048)
OKLCHoklch(46.06% 0.197 327.8)
XYZxyz(16.1537, 8.1908, 26.3161)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D168E #178E16
analogous
#51168E #8D168E #8E1653
triadic
#8D168E #8E8D16 #168E8D
tetradic
#8D168E #8E5116 #178E16 #16538E
square
#8D168E #8E5116 #178E16 #16538E
split-complementary
#8D168E #538E16 #168E51
monochromatic
#240624 #580E59 #8D168E #C21EC3 #E03DE1

Accessibility & contrast

On white

7.96
#8D168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8D168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D168E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D168E#FFFFFF#000000##FFFFFF
##8D168E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#922D54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d168e;
/* rgb */ color: rgb(141, 22, 142);
/* oklch */ color: oklch(46.1% 0.197 327.8);
Tailwind
colors: {
  custom: {
    50: '#b266af',
    500: '#8d168e',
    950: '#000000',
  },
}
SCSS
$custom: #8d168e;
$custom-light: #b266af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d168e",
  "rgb": {
    "r": 141,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 299.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.19677,
    "h": 327.8
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#8D168E
secondary
#40C13F
accent
#F03839
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D168E

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

Preview Lab → · Contrast checker → · Palette generator →

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