#8C168D#8C168D

#8C168D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.196 H 327.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8C168D
RGBrgb(140, 22, 141)
HSLhsl(299, 73%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(0.7%, 84.4%, 0%, 44.7%)
CIE-LABlab(34.14, 59.45, -37.50)
CIE-LCHlch(34.14, 70.29, 327.76°)
OKLaboklab(45.84% 0.1655 -0.1042)
OKLCHoklch(45.84% 0.196 327.8)
XYZxyz(15.9096, 8.0736, 25.9145)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C168D #178D16
analogous
#51168D #8C168D #8D1653
triadic
#8C168D #8D8C16 #168D8C
tetradic
#8C168D #8D5116 #178D16 #16538D
square
#8C168D #8D5116 #178D16 #16538D
split-complementary
#8C168D #538D16 #168D51
monochromatic
#230523 #570E58 #8C168D #C11EC2 #DF3DE1

Accessibility & contrast

On white

8.03
#8C168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8C168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C168D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C168D#FFFFFF#000000##FFFFFF
##8C168D1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#912D54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c168d;
/* rgb */ color: rgb(140, 22, 141);
/* oklch */ color: oklch(45.8% 0.196 327.8);
Tailwind
colors: {
  custom: {
    50: '#b265af',
    500: '#8c168d',
    950: '#000000',
  },
}
SCSS
$custom: #8c168d;
$custom-light: #b265af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c168d",
  "rgb": {
    "r": 140,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 299.496,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45836,
    "c": 0.19559,
    "h": 327.8
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#8C168D
secondary
#3FC13E
accent
#F0383A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C168D

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

Preview Lab → · Contrast checker → · Palette generator →

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