#8E277D#8E277D

#8E277D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.168 H 335.4°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8E277D
RGBrgb(142, 39, 125)
HSLhsl(310, 57%, 35%)
HSVhsv(310, 73%, 56%)
CMYKcmyk(0%, 72.5%, 12%, 44.3%)
CIE-LABlab(35.37, 52.24, -25.60)
CIE-LCHlch(35.37, 58.18, 333.89°)
OKLaboklab(46.5% 0.1526 -0.0698)
OKLCHoklch(46.5% 0.168 335.4)
XYZxyz(15.5827, 8.6839, 20.2535)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E277D #278E38
analogous
#6B278E #8E277D #8E2749
triadic
#8E277D #7D8E27 #277D8E
tetradic
#8E277D #8E6B27 #278E38 #27498E
square
#8E277D #8E6B27 #278E38 #27498E
split-complementary
#8E277D #498E27 #278E6B
monochromatic
#2E0D28 #5E1A53 #8E277D #BE34A7 #D25DBF

Accessibility & contrast

On white

7.67
#8E277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8E277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E277D
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E277D#FFFFFF#000000##FFFFFF
##8E277D1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497F
Deuteranopia (green-blind)
#4B597B
Tritanopia (blue-blind)
#952F4F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e277d;
/* rgb */ color: rgb(142, 39, 125);
/* oklch */ color: oklch(46.5% 0.168 335.4);
Tailwind
colors: {
  custom: {
    50: '#b26ba3',
    500: '#8e277d',
    950: '#000000',
  },
}
SCSS
$custom: #8e277d;
$custom-light: #b26ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e277d",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 309.903,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46496,
    "c": 0.16782,
    "h": 335.4
  },
  "luminance": 0.08682
}

Semantic roles & 50–950 ramp

primary
#8E277D
secondary
#59B869
accent
#E06148
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E277D

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

Preview Lab → · Contrast checker → · Palette generator →

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