#8E1F78#8E1F78

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

Color values

HEX#8E1F78
RGBrgb(142, 31, 120)
HSLhsl(312, 64%, 34%)
HSVhsv(312, 78%, 56%)
CMYKcmyk(0%, 78.2%, 15.5%, 44.3%)
CIE-LABlab(34.17, 54.18, -24.35)
CIE-LCHlch(34.17, 59.40, 335.80°)
OKLaboklab(45.55% 0.1601 -0.0662)
OKLCHoklch(45.55% 0.173 337.5)
XYZxyz(15.0358, 8.0883, 18.5350)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F78 #1F8E35
analogous
#6D1F8E #8E1F78 #8E1F41
triadic
#8E1F78 #788E1F #1F788E
tetradic
#8E1F78 #8E6D1F #1F8E35 #1F418E
square
#8E1F78 #8E6D1F #1F8E35 #1F418E
split-complementary
#8E1F78 #418E1F #1F8E6D
monochromatic
#2A0923 #5C144E #8E1F78 #C02AA2 #D94FBD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E1F78#FFFFFF#000000##FFFFFF
##8E1F781.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)
#23467A
Deuteranopia (green-blind)
#4A5675
Tritanopia (blue-blind)
#96264A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1f78;
/* rgb */ color: rgb(142, 31, 120);
/* oklch */ color: oklch(45.5% 0.173 337.5);
Tailwind
colors: {
  custom: {
    50: '#b3689f',
    500: '#8e1f78',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f78;
$custom-light: #b3689f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f78",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 311.892,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45547,
    "c": 0.17327,
    "h": 337.5
  },
  "luminance": 0.08087
}

Semantic roles & 50–950 ramp

primary
#8E1F78
secondary
#4DBB63
accent
#E76241
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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