#8E2174#8E2174

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

Color values

HEX#8E2174
RGBrgb(142, 33, 116)
HSLhsl(314, 62%, 34%)
HSVhsv(314, 77%, 56%)
CMYKcmyk(0%, 76.8%, 18.3%, 44.3%)
CIE-LABlab(34.19, 52.96, -21.79)
CIE-LCHlch(34.19, 57.27, 337.64°)
OKLaboklab(45.5% 0.1577 -0.0589)
OKLCHoklch(45.5% 0.168 339.5)
XYZxyz(14.8520, 8.1009, 17.3011)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2174 #218E3B
analogous
#72218E #8E2174 #8E213E
triadic
#8E2174 #748E21 #21748E
tetradic
#8E2174 #8E7221 #218E3B #213E8E
square
#8E2174 #8E7221 #218E3B #213E8E
split-complementary
#8E2174 #3E8E21 #218E72
monochromatic
#2B0A23 #5C154B #8E2174 #C02D9D #D752B7

Accessibility & contrast

On white

8.02
#8E2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2174
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2174#FFFFFF#000000##FFFFFF
##8E21741.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284576
Deuteranopia (green-blind)
#4C5771
Tritanopia (blue-blind)
#972548
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e2174;
/* rgb */ color: rgb(142, 33, 116);
/* oklch */ color: oklch(45.5% 0.168 339.5);
Tailwind
colors: {
  custom: {
    50: '#b3689c',
    500: '#8e2174',
    950: '#000000',
  },
}
SCSS
$custom: #8e2174;
$custom-light: #b3689c;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2174",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 314.312,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45502,
    "c": 0.16838,
    "h": 339.5
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#8E2174
secondary
#50BA6A
accent
#E56942
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2174

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

Preview Lab → · Contrast checker → · Palette generator →

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