#8E337F#8E337F

#8E337F is a mid, vivid purple. Relative luminance 0.097; OKLCH L 47.9% C 0.153 H 334.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8E337F
RGBrgb(142, 51, 127)
HSLhsl(310, 47%, 38%)
HSVhsv(310, 64%, 56%)
CMYKcmyk(0%, 64.1%, 10.6%, 44.3%)
CIE-LABlab(37.21, 47.70, -23.97)
CIE-LCHlch(37.21, 53.38, 333.32°)
OKLaboklab(47.87% 0.1385 -0.0653)
OKLCHoklch(47.87% 0.153 334.8)
XYZxyz(16.1700, 9.6520, 21.0859)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E337F #338E42
analogous
#6F338E #8E337F #8E3351
triadic
#8E337F #7F8E33 #337F8E
tetradic
#8E337F #8E6F33 #338E42 #33518E
square
#8E337F #8E6F33 #338E42 #33518E
split-complementary
#8E337F #518E33 #338E6F
monochromatic
#34132E #612357 #8E337F #BB43A7 #CC70BC

Accessibility & contrast

On white

7.17
#8E337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8E337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E337F
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E337F#FFFFFF#000000##FFFFFF
##8E337F1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334F81
Deuteranopia (green-blind)
#505C7D
Tritanopia (blue-blind)
#953954
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e337f;
/* rgb */ color: rgb(142, 51, 127);
/* oklch */ color: oklch(47.9% 0.153 334.8);
Tailwind
colors: {
  custom: {
    50: '#b271a4',
    500: '#8e337f',
    950: '#000000',
  },
}
SCSS
$custom: #8e337f;
$custom-light: #b271a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e337f",
  "rgb": {
    "r": 142,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 309.89,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47867,
    "c": 0.15311,
    "h": 334.8
  },
  "luminance": 0.09651
}

Semantic roles & 50–950 ramp

primary
#8E337F
secondary
#69B475
accent
#D76751
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E337F

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

Preview Lab → · Contrast checker → · Palette generator →

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