#8E2E7B#8E2E7B

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

Color values

HEX#8E2E7B
RGBrgb(142, 46, 123)
HSLhsl(312, 51%, 37%)
HSVhsv(312, 68%, 56%)
CMYKcmyk(0%, 67.6%, 13.4%, 44.3%)
CIE-LABlab(36.25, 49.19, -22.98)
CIE-LCHlch(36.25, 54.30, 334.96°)
OKLaboklab(47.1% 0.1442 -0.0624)
OKLCHoklch(47.1% 0.157 336.6)
XYZxyz(15.7077, 9.1362, 19.6712)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2E7B #2E8E41
analogous
#712E8E #8E2E7B #8E2E4B
triadic
#8E2E7B #7B8E2E #2E7B8E
tetradic
#8E2E7B #8E712E #2E8E41 #2E4B8E
square
#8E2E7B #8E712E #2E8E41 #2E4B8E
split-complementary
#8E2E7B #4B8E2E #2E8E71
monochromatic
#32102B #601F53 #8E2E7B #BC3DA3 #CE68BA

Accessibility & contrast

On white

7.43
#8E2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8E2E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2E7B
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2E7B#FFFFFF#000000##FFFFFF
##8E2E7B1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7D
Deuteranopia (green-blind)
#4F5B79
Tritanopia (blue-blind)
#953350
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2e7b;
/* rgb */ color: rgb(142, 46, 123);
/* oklch */ color: oklch(47.1% 0.157 336.6);
Tailwind
colors: {
  custom: {
    50: '#b26ea1',
    500: '#8e2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e2e7b;
$custom-light: #b26ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2e7b",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 311.875,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47101,
    "c": 0.15717,
    "h": 336.6
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#8E2E7B
secondary
#63B573
accent
#DB694D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8E2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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