#8E1F7E#8E1F7E

#8E1F7E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.178 H 334.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#8E1F7E
RGBrgb(142, 31, 126)
HSLhsl(309, 64%, 34%)
HSVhsv(309, 78%, 56%)
CMYKcmyk(0%, 78.2%, 11.3%, 44.3%)
CIE-LABlab(34.47, 55.09, -27.63)
CIE-LCHlch(34.47, 61.63, 333.36°)
OKLaboklab(45.87% 0.1606 -0.0756)
OKLCHoklch(45.87% 0.178 334.8)
XYZxyz(15.4114, 8.2385, 20.5131)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F7E #1F8E2F
analogous
#671F8E #8E1F7E #8E1F47
triadic
#8E1F7E #7E8E1F #1F7E8E
tetradic
#8E1F7E #8E671F #1F8E2F #1F478E
square
#8E1F7E #8E671F #1F8E2F #1F478E
split-complementary
#8E1F7E #478E1F #1F8E67
monochromatic
#2A0925 #5C1451 #8E1F7E #C02AAB #D94FC5

Accessibility & contrast

On white

7.93
#8E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8E1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F7E
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F7E#FFFFFF#000000##FFFFFF
##8E1F7E1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4781
Deuteranopia (green-blind)
#47577B
Tritanopia (blue-blind)
#95294D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1f7e;
/* rgb */ color: rgb(142, 31, 126);
/* oklch */ color: oklch(45.9% 0.178 334.8);
Tailwind
colors: {
  custom: {
    50: '#b368a3',
    500: '#8e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f7e;
$custom-light: #b368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f7e",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 308.649,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45869,
    "c": 0.17753,
    "h": 334.8
  },
  "luminance": 0.08237
}

Semantic roles & 50–950 ramp

primary
#8E1F7E
secondary
#4DBB5D
accent
#E75941
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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