#8E127D#8E127D

#8E127D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.188 H 335.1°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#8E127D
RGBrgb(142, 18, 125)
HSLhsl(308, 78%, 31%)
HSVhsv(308, 87%, 56%)
CMYKcmyk(0%, 87.3%, 12%, 44.3%)
CIE-LABlab(33.28, 58.24, -28.89)
CIE-LCHlch(33.28, 65.02, 333.62°)
OKLaboklab(45% 0.1704 -0.0791)
OKLCHoklch(45% 0.188 335.1)
XYZxyz(15.0735, 7.6655, 20.0838)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E127D #128E23
analogous
#61128E #8E127D #8E123F
triadic
#8E127D #7D8E12 #127D8E
tetradic
#8E127D #8E6112 #128E23 #123F8E
square
#8E127D #8E6112 #128E23 #123F8E
split-complementary
#8E127D #3F8E12 #128E61
monochromatic
#21041D #580B4D #8E127D #C419AD #E535CD

Accessibility & contrast

On white

8.29
#8E127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8E127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E127D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E127D#FFFFFF#000000##FFFFFF
##8E127D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114380
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#95204A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8e127d;
/* rgb */ color: rgb(142, 18, 125);
/* oklch */ color: oklch(45.0% 0.188 335.1);
Tailwind
colors: {
  custom: {
    50: '#b364a3',
    500: '#8e127d',
    950: '#000000',
  },
}
SCSS
$custom: #8e127d;
$custom-light: #b364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e127d",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 308.226,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44995,
    "c": 0.18788,
    "h": 335.1
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#8E127D
secondary
#3AC24C
accent
#F44E34
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8E127D

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

Preview Lab → · Contrast checker → · Palette generator →

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