#8E337E#8E337E

#8E337E is a mid, vivid pink. Relative luminance 0.096; OKLCH L 47.8% C 0.152 H 335.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8E337E
RGBrgb(142, 51, 126)
HSLhsl(311, 47%, 38%)
HSVhsv(311, 64%, 56%)
CMYKcmyk(0%, 64.1%, 11.3%, 44.3%)
CIE-LABlab(37.16, 47.53, -23.42)
CIE-LCHlch(37.16, 52.99, 333.77°)
OKLaboklab(47.82% 0.1383 -0.0637)
OKLCHoklch(47.82% 0.152 335.3)
XYZxyz(16.1052, 9.6261, 20.7444)
Luminance0.0963 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E337E #338E43
analogous
#70338E #8E337E #8E3351
triadic
#8E337E #7E8E33 #337E8E
tetradic
#8E337E #8E7033 #338E43 #33518E
square
#8E337E #8E7033 #338E43 #33518E
split-complementary
#8E337E #518E33 #338E70
monochromatic
#34132E #612356 #8E337E #BB43A6 #CC70BB

Accessibility & contrast

On white

7.18
#8E337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E337E
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E337E#FFFFFF#000000##FFFFFF
##8E337E1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334F80
Deuteranopia (green-blind)
#505C7C
Tritanopia (blue-blind)
#953953
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e337e;
/* rgb */ color: rgb(142, 51, 126);
/* oklch */ color: oklch(47.8% 0.152 335.3);
Tailwind
colors: {
  custom: {
    50: '#b271a3',
    500: '#8e337e',
    950: '#000000',
  },
}
SCSS
$custom: #8e337e;
$custom-light: #b271a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e337e",
  "rgb": {
    "r": 142,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 310.549,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47816,
    "c": 0.15231,
    "h": 335.3
  },
  "luminance": 0.09625
}

Semantic roles & 50–950 ramp

primary
#8E337E
secondary
#69B476
accent
#D76951
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E337E

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

Preview Lab → · Contrast checker → · Palette generator →

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