#8E2D7E#8E2D7E

#8E2D7E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.161 H 335.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8E2D7E
RGBrgb(142, 45, 126)
HSLhsl(310, 52%, 37%)
HSVhsv(310, 68%, 56%)
CMYKcmyk(0%, 68.3%, 11.3%, 44.3%)
CIE-LABlab(36.24, 50.08, -24.86)
CIE-LCHlch(36.24, 55.91, 333.60°)
OKLaboklab(47.15% 0.1459 -0.0678)
OKLCHoklch(47.15% 0.161 335.1)
XYZxyz(15.8598, 9.1352, 20.6626)
Luminance0.0913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D7E #2D8E3D
analogous
#6E2D8E #8E2D7E #8E2D4E
triadic
#8E2D7E #7E8E2D #2D7E8E
tetradic
#8E2D7E #8E6E2D #2D8E3D #2D4E8E
square
#8E2D7E #8E6E2D #2D8E3D #2D4E8E
split-complementary
#8E2D7E #4E8E2D #2D8E6E
monochromatic
#31102C #601E55 #8E2D7E #BC3CA7 #CF67BE

Accessibility & contrast

On white

7.43
#8E2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8E2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2D7E
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D7E#FFFFFF#000000##FFFFFF
##8E2D7E1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C80
Deuteranopia (green-blind)
#4D5A7C
Tritanopia (blue-blind)
#953451
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2d7e;
/* rgb */ color: rgb(142, 45, 126);
/* oklch */ color: oklch(47.1% 0.161 335.1);
Tailwind
colors: {
  custom: {
    50: '#b26ea3',
    500: '#8e2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d7e;
$custom-light: #b26ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d7e",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 309.897,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.16083,
    "h": 335.1
  },
  "luminance": 0.09134
}

Semantic roles & 50–950 ramp

primary
#8E2D7E
secondary
#61B56F
accent
#DB644C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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