#8E2173#8E2173

#8E2173 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.5% C 0.168 H 340.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8E2173
RGBrgb(142, 33, 115)
HSLhsl(315, 62%, 34%)
HSVhsv(315, 77%, 56%)
CMYKcmyk(0%, 76.8%, 19%, 44.3%)
CIE-LABlab(34.14, 52.82, -21.23)
CIE-LCHlch(34.14, 56.93, 338.10°)
OKLaboklab(45.45% 0.1576 -0.0573)
OKLCHoklch(45.45% 0.168 340)
XYZxyz(14.7941, 8.0778, 16.9964)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2173 #218E3C
analogous
#73218E #8E2173 #8E213D
triadic
#8E2173 #738E21 #21738E
tetradic
#8E2173 #8E7321 #218E3C #213D8E
square
#8E2173 #8E7321 #218E3C #213D8E
split-complementary
#8E2173 #3D8E21 #218E73
monochromatic
#2B0A23 #5C154B #8E2173 #C02D9B #D752B6

Accessibility & contrast

On white

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

On black

2.62
#8E2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8E2173#FFFFFF#000000##FFFFFF
##8E21731.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294575
Deuteranopia (green-blind)
#4D5670
Tritanopia (blue-blind)
#972547
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e2173;
/* rgb */ color: rgb(142, 33, 115);
/* oklch */ color: oklch(45.5% 0.168 340.0);
Tailwind
colors: {
  custom: {
    50: '#b3689b',
    500: '#8e2173',
    950: '#000000',
  },
}
SCSS
$custom: #8e2173;
$custom-light: #b3689b;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2173",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 314.862,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45452,
    "c": 0.1677,
    "h": 340
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

primary
#8E2173
secondary
#50BA6B
accent
#E56B42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2173

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

Preview Lab → · Contrast checker → · Palette generator →

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