#8E1F77#8E1F77

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

Color values

HEX#8E1F77
RGBrgb(142, 31, 119)
HSLhsl(312, 64%, 34%)
HSVhsv(312, 78%, 56%)
CMYKcmyk(0%, 78.2%, 16.2%, 44.3%)
CIE-LABlab(34.12, 54.04, -23.80)
CIE-LCHlch(34.12, 59.04, 336.23°)
OKLaboklab(45.5% 0.16 -0.0646)
OKLCHoklch(45.5% 0.173 338)
XYZxyz(14.9754, 8.0641, 18.2170)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F77 #1F8E36
analogous
#6E1F8E #8E1F77 #8E1F40
triadic
#8E1F77 #778E1F #1F778E
tetradic
#8E1F77 #8E6E1F #1F8E36 #1F408E
square
#8E1F77 #8E6E1F #1F8E36 #1F408E
split-complementary
#8E1F77 #408E1F #1F8E6E
monochromatic
#2A0923 #5C144D #8E1F77 #C02AA1 #D94FBC

Accessibility & contrast

On white

8.04
#8E1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F77
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F77#FFFFFF#000000##FFFFFF
##8E1F771.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244579
Deuteranopia (green-blind)
#4A5674
Tritanopia (blue-blind)
#962549
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1f77;
/* rgb */ color: rgb(142, 31, 119);
/* oklch */ color: oklch(45.5% 0.173 338.0);
Tailwind
colors: {
  custom: {
    50: '#b3689e',
    500: '#8e1f77',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f77;
$custom-light: #b3689e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f77",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 312.432,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45495,
    "c": 0.17258,
    "h": 338
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#8E1F77
secondary
#4DBB64
accent
#E76341
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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