#8E2F7A#8E2F7A

#8E2F7A is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.2% C 0.155 H 337.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8E2F7A
RGBrgb(142, 47, 122)
HSLhsl(313, 50%, 37%)
HSVhsv(313, 67%, 56%)
CMYKcmyk(0%, 66.9%, 14.1%, 44.3%)
CIE-LABlab(36.35, 48.61, -22.20)
CIE-LCHlch(36.35, 53.44, 335.45°)
OKLaboklab(47.16% 0.1428 -0.0602)
OKLCHoklch(47.16% 0.155 337.1)
XYZxyz(15.6849, 9.1903, 19.3564)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F7A #2F8E43
analogous
#732F8E #8E2F7A #8E2F4A
triadic
#8E2F7A #7A8E2F #2F7A8E
tetradic
#8E2F7A #8E732F #2F8E43 #2F4A8E
square
#8E2F7A #8E732F #2F8E43 #2F4A8E
split-complementary
#8E2F7A #4A8E2F #2F8E73
monochromatic
#32112B #602052 #8E2F7A #BC3EA2 #CE6AB9

Accessibility & contrast

On white

7.40
#8E2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8E2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F7A
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F7A#FFFFFF#000000##FFFFFF
##8E2F7A1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314C7C
Deuteranopia (green-blind)
#505B78
Tritanopia (blue-blind)
#953450
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2f7a;
/* rgb */ color: rgb(142, 47, 122);
/* oklch */ color: oklch(47.2% 0.155 337.1);
Tailwind
colors: {
  custom: {
    50: '#b26fa0',
    500: '#8e2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f7a;
$custom-light: #b26fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f7a",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 312.632,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4716,
    "c": 0.15501,
    "h": 337.1
  },
  "luminance": 0.09189
}

Semantic roles & 50–950 ramp

primary
#8E2F7A
secondary
#64B575
accent
#DA6B4E
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8E2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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