#8E2176#8E2176

#8E2176 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.6% C 0.170 H 338.5°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8E2176
RGBrgb(142, 33, 118)
HSLhsl(313, 62%, 34%)
HSVhsv(313, 77%, 56%)
CMYKcmyk(0%, 76.8%, 16.9%, 44.3%)
CIE-LABlab(34.29, 53.26, -22.90)
CIE-LCHlch(34.29, 57.97, 336.73°)
OKLaboklab(45.6% 0.158 -0.0621)
OKLCHoklch(45.6% 0.17 338.5)
XYZxyz(14.9696, 8.1479, 17.9204)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2176 #218E39
analogous
#70218E #8E2176 #8E2140
triadic
#8E2176 #768E21 #21768E
tetradic
#8E2176 #8E7021 #218E39 #21408E
square
#8E2176 #8E7021 #218E39 #21408E
split-complementary
#8E2176 #408E21 #218E70
monochromatic
#2B0A23 #5C154D #8E2176 #C02D9F #D752BA

Accessibility & contrast

On white

7.99
#8E2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2176
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2176#FFFFFF#000000##FFFFFF
##8E21761.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274678
Deuteranopia (green-blind)
#4B5773
Tritanopia (blue-blind)
#962649
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e2176;
/* rgb */ color: rgb(142, 33, 118);
/* oklch */ color: oklch(45.6% 0.170 338.5);
Tailwind
colors: {
  custom: {
    50: '#b3689d',
    500: '#8e2176',
    950: '#000000',
  },
}
SCSS
$custom: #8e2176;
$custom-light: #b3689d;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2176",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 313.211,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45604,
    "c": 0.16975,
    "h": 338.5
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#8E2176
secondary
#50BA68
accent
#E56642
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2176

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

Preview Lab → · Contrast checker → · Palette generator →

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