#8E1E7C#8E1E7C

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

Color values

HEX#8E1E7C
RGBrgb(142, 30, 124)
HSLhsl(310, 65%, 34%)
HSVhsv(310, 79%, 56%)
CMYKcmyk(0%, 78.9%, 12.7%, 44.3%)
CIE-LABlab(34.26, 55.08, -26.71)
CIE-LCHlch(34.26, 61.22, 334.13°)
OKLaboklab(45.68% 0.1614 -0.0729)
OKLCHoklch(45.68% 0.177 335.7)
XYZxyz(15.2579, 8.1360, 19.8317)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1E7C #1E8E30
analogous
#681E8E #8E1E7C #8E1E44
triadic
#8E1E7C #7C8E1E #1E7C8E
tetradic
#8E1E7C #8E681E #1E8E30 #1E448E
square
#8E1E7C #8E681E #1E8E30 #1E448E
split-complementary
#8E1E7C #448E1E #1E8E68
monochromatic
#290924 #5B1350 #8E1E7C #C129A8 #D94DC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E1E7C#FFFFFF#000000##FFFFFF
##8E1E7C1.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)
#1F467E
Deuteranopia (green-blind)
#485679
Tritanopia (blue-blind)
#95274C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1e7c;
/* rgb */ color: rgb(142, 30, 124);
/* oklch */ color: oklch(45.7% 0.177 335.7);
Tailwind
colors: {
  custom: {
    50: '#b368a2',
    500: '#8e1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #8e1e7c;
$custom-light: #b368a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1e7c",
  "rgb": {
    "r": 142,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 309.643,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45684,
    "c": 0.17711,
    "h": 335.7
  },
  "luminance": 0.08135
}

Semantic roles & 50–950 ramp

primary
#8E1E7C
secondary
#4CBC5E
accent
#E85B40
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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