#8E1F72#8E1F72

#8E1F72 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.2% C 0.169 H 340.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8E1F72
RGBrgb(142, 31, 114)
HSLhsl(315, 64%, 34%)
HSVhsv(315, 78%, 56%)
CMYKcmyk(0%, 78.2%, 19.7%, 44.3%)
CIE-LABlab(33.87, 53.32, -21.02)
CIE-LCHlch(33.87, 57.31, 338.48°)
OKLaboklab(45.24% 0.1594 -0.0567)
OKLCHoklch(45.24% 0.169 340.4)
XYZxyz(14.6830, 7.9471, 16.6770)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F72 #1F8E3B
analogous
#731F8E #8E1F72 #8E1F3B
triadic
#8E1F72 #728E1F #1F728E
tetradic
#8E1F72 #8E731F #1F8E3B #1F3B8E
square
#8E1F72 #8E731F #1F8E3B #1F3B8E
split-complementary
#8E1F72 #3B8E1F #1F8E73
monochromatic
#2A0921 #5C144A #8E1F72 #C02A9A #D94FB6

Accessibility & contrast

On white

8.11
#8E1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F72
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F72#FFFFFF#000000##FFFFFF
##8E1F721.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284474
Deuteranopia (green-blind)
#4C566F
Tritanopia (blue-blind)
#972246
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1f72;
/* rgb */ color: rgb(142, 31, 114);
/* oklch */ color: oklch(45.2% 0.169 340.4);
Tailwind
colors: {
  custom: {
    50: '#b3679a',
    500: '#8e1f72',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f72;
$custom-light: #b3679a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f72",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 315.135,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4524,
    "c": 0.16918,
    "h": 340.4
  },
  "luminance": 0.07946
}

Semantic roles & 50–950 ramp

primary
#8E1F72
secondary
#4DBB69
accent
#E76B41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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