#8E1172#8E1172

#8E1172 is a dark, vivid pink. Relative luminance 0.074; OKLCH L 44.3% C 0.181 H 340.0°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#8E1172
RGBrgb(142, 17, 114)
HSLhsl(313, 79%, 31%)
HSVhsv(313, 88%, 56%)
CMYKcmyk(0%, 88%, 19.7%, 44.3%)
CIE-LABlab(32.63, 56.89, -22.96)
CIE-LCHlch(32.63, 61.35, 338.03°)
OKLaboklab(44.35% 0.1703 -0.0621)
OKLCHoklch(44.35% 0.181 340)
XYZxyz(14.3935, 7.3681, 16.5805)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1172 #118E2D
analogous
#6B118E #8E1172 #8E1133
triadic
#8E1172 #728E11 #11728E
tetradic
#8E1172 #8E6B11 #118E2D #11338E
square
#8E1172 #8E6B11 #118E2D #11338E
split-complementary
#8E1172 #338E11 #118E6B
monochromatic
#21041A #570A46 #8E1172 #C5189E #E733BE

Accessibility & contrast

On white

8.49
#8E1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8E1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1172
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1172#FFFFFF#000000##FFFFFF
##8E11721.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4174
Deuteranopia (green-blind)
#49536F
Tritanopia (blue-blind)
#971743
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8e1172;
/* rgb */ color: rgb(142, 17, 114);
/* oklch */ color: oklch(44.3% 0.181 340.0);
Tailwind
colors: {
  custom: {
    50: '#b3639b',
    500: '#8e1172',
    950: '#000000',
  },
}
SCSS
$custom: #8e1172;
$custom-light: #b3639b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1172",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 313.44,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44347,
    "c": 0.18127,
    "h": 340
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#8E1172
secondary
#38C257
accent
#F55E33
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060E
muted
#817A7E

Preview Lab

Preview with #8E1172

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

Preview Lab → · Contrast checker → · Palette generator →

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