#8E2D7B#8E2D7B

#8E2D7B is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.0% C 0.159 H 336.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8E2D7B
RGBrgb(142, 45, 123)
HSLhsl(312, 52%, 37%)
HSVhsv(312, 68%, 56%)
CMYKcmyk(0%, 68.3%, 13.4%, 44.3%)
CIE-LABlab(36.10, 49.60, -23.21)
CIE-LCHlch(36.10, 54.77, 334.92°)
OKLaboklab(46.99% 0.1455 -0.0631)
OKLCHoklch(46.99% 0.159 336.6)
XYZxyz(15.6691, 9.0590, 19.6584)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2D7B #2D8E40
analogous
#712D8E #8E2D7B #8E2D4A
triadic
#8E2D7B #7B8E2D #2D7B8E
tetradic
#8E2D7B #8E712D #2D8E40 #2D4A8E
square
#8E2D7B #8E712D #2D8E40 #2D4A8E
split-complementary
#8E2D7B #4A8E2D #2D8E71
monochromatic
#31102A #601E53 #8E2D7B #BC3CA3 #CF67BA

Accessibility & contrast

On white

7.47
#8E2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2D7B
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2D7B#FFFFFF#000000##FFFFFF
##8E2D7B1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7D
Deuteranopia (green-blind)
#4E5A79
Tritanopia (blue-blind)
#953250
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2d7b;
/* rgb */ color: rgb(142, 45, 123);
/* oklch */ color: oklch(47.0% 0.159 336.6);
Tailwind
colors: {
  custom: {
    50: '#b26ea1',
    500: '#8e2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e2d7b;
$custom-light: #b26ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2d7b",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 311.753,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46993,
    "c": 0.15854,
    "h": 336.6
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#8E2D7B
secondary
#61B572
accent
#DB684C
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8E2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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