#8E127E#8E127E

#8E127E is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.189 H 334.7°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8E127E
RGBrgb(142, 18, 126)
HSLhsl(308, 78%, 31%)
HSVhsv(308, 87%, 56%)
CMYKcmyk(0%, 87.3%, 11.3%, 44.3%)
CIE-LABlab(33.33, 58.39, -29.43)
CIE-LCHlch(33.33, 65.39, 333.25°)
OKLaboklab(45.05% 0.1704 -0.0807)
OKLCHoklch(45.05% 0.189 334.7)
XYZxyz(15.1377, 7.6912, 20.4219)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E127E #128E22
analogous
#60128E #8E127E #8E1240
triadic
#8E127E #7E8E12 #127E8E
tetradic
#8E127E #8E6012 #128E22 #12408E
square
#8E127E #8E6012 #128E22 #12408E
split-complementary
#8E127E #408E12 #128E60
monochromatic
#21041E #580B4E #8E127E #C419AE #E535CF

Accessibility & contrast

On white

8.27
#8E127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8E127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E127E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E127E#FFFFFF#000000##FFFFFF
##8E127E1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4381
Deuteranopia (green-blind)
#44547B
Tritanopia (blue-blind)
#95214A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e127e;
/* rgb */ color: rgb(142, 18, 126);
/* oklch */ color: oklch(45.1% 0.189 334.7);
Tailwind
colors: {
  custom: {
    50: '#b364a4',
    500: '#8e127e',
    950: '#000000',
  },
}
SCSS
$custom: #8e127e;
$custom-light: #b364a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e127e",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 307.742,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.45052,
    "c": 0.18857,
    "h": 334.7
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

primary
#8E127E
secondary
#3AC24B
accent
#F44D34
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8E127E

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

Preview Lab → · Contrast checker → · Palette generator →

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