#8F168C#8F168C

#8F168C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.196 H 329.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8F168C
RGBrgb(143, 22, 140)
HSLhsl(301, 73%, 32%)
HSVhsv(301, 85%, 56%)
CMYKcmyk(0%, 84.6%, 2.1%, 43.9%)
CIE-LABlab(34.62, 59.89, -36.09)
CIE-LCHlch(34.62, 69.92, 328.93°)
OKLaboklab(46.26% 0.1688 -0.1)
OKLCHoklch(46.26% 0.196 329.4)
XYZxyz(16.3481, 8.3082, 25.5485)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F168C #168F19
analogous
#56168F #8F168C #8F164F
triadic
#8F168C #8C8F16 #168C8F
tetradic
#8F168C #8F5616 #168F19 #164F8F
square
#8F168C #8F5616 #168F19 #164F8F
split-complementary
#8F168C #4F8F16 #168F56
monochromatic
#250624 #5A0E58 #8F168C #C41EC0 #E13EDD

Accessibility & contrast

On white

7.89
#8F168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8F168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F168C
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F168C#FFFFFF#000000##FFFFFF
##8F168C1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#942B53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f168c;
/* rgb */ color: rgb(143, 22, 140);
/* oklch */ color: oklch(46.3% 0.196 329.4);
Tailwind
colors: {
  custom: {
    50: '#b466ae',
    500: '#8f168c',
    950: '#000000',
  },
}
SCSS
$custom: #8f168c;
$custom-light: #b466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f168c",
  "rgb": {
    "r": 143,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 301.488,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.46259,
    "c": 0.19618,
    "h": 329.4
  },
  "luminance": 0.08307
}

Semantic roles & 50–950 ramp

primary
#8F168C
secondary
#3FC143
accent
#F03C38
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F168C

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

Preview Lab → · Contrast checker → · Palette generator →

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