#8E2D7A#8E2D7A

#8E2D7A is a mid, vivid pink. Relative luminance 0.090; OKLCH L 46.9% C 0.158 H 337.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8E2D7A
RGBrgb(142, 45, 122)
HSLhsl(312, 52%, 37%)
HSVhsv(312, 68%, 56%)
CMYKcmyk(0%, 68.3%, 14.1%, 44.3%)
CIE-LABlab(36.05, 49.44, -22.66)
CIE-LCHlch(36.05, 54.39, 335.37°)
OKLaboklab(46.94% 0.1453 -0.0615)
OKLCHoklch(46.94% 0.158 337.1)
XYZxyz(15.6068, 9.0341, 19.3304)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D7A #2D8E41
analogous
#722D8E #8E2D7A #8E2D4A
triadic
#8E2D7A #7A8E2D #2D7A8E
tetradic
#8E2D7A #8E722D #2D8E41 #2D4A8E
square
#8E2D7A #8E722D #2D8E41 #2D4A8E
split-complementary
#8E2D7A #4A8E2D #2D8E72
monochromatic
#31102A #601E52 #8E2D7A #BC3CA2 #CF67B9

Accessibility & contrast

On white

7.48
#8E2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8E2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2D7A
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D7A#FFFFFF#000000##FFFFFF
##8E2D7A1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7C
Deuteranopia (green-blind)
#4F5A78
Tritanopia (blue-blind)
#96324F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2d7a;
/* rgb */ color: rgb(142, 45, 122);
/* oklch */ color: oklch(46.9% 0.158 337.1);
Tailwind
colors: {
  custom: {
    50: '#b26ea0',
    500: '#8e2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d7a;
$custom-light: #b26ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d7a",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 312.371,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.15779,
    "h": 337.1
  },
  "luminance": 0.09033
}

Semantic roles & 50–950 ramp

primary
#8E2D7A
secondary
#61B573
accent
#DB6A4C
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8E2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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