#8E2B7D#8E2B7D

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

Color values

HEX#8E2B7D
RGBrgb(142, 43, 125)
HSLhsl(310, 54%, 36%)
HSVhsv(310, 70%, 56%)
CMYKcmyk(0%, 69.7%, 12%, 44.3%)
CIE-LABlab(35.91, 50.72, -24.76)
CIE-LCHlch(35.91, 56.44, 333.98°)
OKLaboklab(46.89% 0.1481 -0.0675)
OKLCHoklch(46.89% 0.163 335.5)
XYZxyz(15.7211, 8.9605, 20.2996)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B7D #2B8E3C
analogous
#6E2B8E #8E2B7D #8E2B4C
triadic
#8E2B7D #7D8E2B #2B7D8E
tetradic
#8E2B7D #8E6E2B #2B8E3C #2B4C8E
square
#8E2B7D #8E6E2B #2B8E3C #2B4C8E
split-complementary
#8E2B7D #4C8E2B #2B8E6E
monochromatic
#300F2A #5F1D54 #8E2B7D #BD39A6 #D063BD

Accessibility & contrast

On white

7.52
#8E2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8E2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B7D
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B7D#FFFFFF#000000##FFFFFF
##8E2B7D1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#4D5A7B
Tritanopia (blue-blind)
#953250
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e2b7d;
/* rgb */ color: rgb(142, 43, 125);
/* oklch */ color: oklch(46.9% 0.163 335.5);
Tailwind
colors: {
  custom: {
    50: '#b26da3',
    500: '#8e2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b7d;
$custom-light: #b26da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b7d",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 310.303,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46887,
    "c": 0.16274,
    "h": 335.5
  },
  "luminance": 0.08959
}

Semantic roles & 50–950 ramp

primary
#8E2B7D
secondary
#5FB66E
accent
#DD644B
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8E2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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