#8E1F7A#8E1F7A

#8E1F7A is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.7% C 0.175 H 336.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8E1F7A
RGBrgb(142, 31, 122)
HSLhsl(311, 64%, 34%)
HSVhsv(311, 78%, 56%)
CMYKcmyk(0%, 78.2%, 14.1%, 44.3%)
CIE-LABlab(34.27, 54.48, -25.45)
CIE-LCHlch(34.27, 60.13, 334.96°)
OKLaboklab(45.65% 0.1603 -0.0693)
OKLCHoklch(45.65% 0.175 336.6)
XYZxyz(15.1584, 8.1373, 19.1809)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F7A #1F8E33
analogous
#6B1F8E #8E1F7A #8E1F43
triadic
#8E1F7A #7A8E1F #1F7A8E
tetradic
#8E1F7A #8E6B1F #1F8E33 #1F438E
square
#8E1F7A #8E6B1F #1F8E33 #1F438E
split-complementary
#8E1F7A #438E1F #1F8E6B
monochromatic
#2A0924 #5C144F #8E1F7A #C02AA5 #D94FC0

Accessibility & contrast

On white

7.99
#8E1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F7A
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F7A#FFFFFF#000000##FFFFFF
##8E1F7A1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#495777
Tritanopia (blue-blind)
#96274B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1f7a;
/* rgb */ color: rgb(142, 31, 122);
/* oklch */ color: oklch(45.7% 0.175 336.6);
Tailwind
colors: {
  custom: {
    50: '#b368a0',
    500: '#8e1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f7a;
$custom-light: #b368a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f7a",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 310.811,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45653,
    "c": 0.17468,
    "h": 336.6
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

primary
#8E1F7A
secondary
#4DBB61
accent
#E75F41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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