#8E2F71#8E2F71

#8E2F71 is a mid, vivid pink. Relative luminance 0.090; OKLCH L 46.7% C 0.148 H 341.9°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#8E2F71
RGBrgb(142, 47, 113)
HSLhsl(318, 50%, 37%)
HSVhsv(318, 67%, 56%)
CMYKcmyk(0%, 66.9%, 20.4%, 44.3%)
CIE-LABlab(35.94, 47.23, -17.19)
CIE-LCHlch(35.94, 50.26, 340.00°)
OKLaboklab(46.73% 0.1412 -0.0461)
OKLCHoklch(46.73% 0.149 341.9)
XYZxyz(15.1529, 8.9775, 16.5544)
Luminance0.0898 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F71 #2F8E4C
analogous
#7C2F8E #8E2F71 #8E2F41
triadic
#8E2F71 #718E2F #2F718E
tetradic
#8E2F71 #8E7C2F #2F8E4C #2F418E
square
#8E2F71 #8E7C2F #2F8E4C #2F418E
split-complementary
#8E2F71 #418E2F #2F8E7C
monochromatic
#321128 #60204C #8E2F71 #BC3E96 #CE6AAF

Accessibility & contrast

On white

7.51
#8E2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8E2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2F71
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F71#FFFFFF#000000##FFFFFF
##8E2F711.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B73
Deuteranopia (green-blind)
#535A6F
Tritanopia (blue-blind)
#97304B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2f71;
/* rgb */ color: rgb(142, 47, 113);
/* oklch */ color: oklch(46.7% 0.148 341.9);
Tailwind
colors: {
  custom: {
    50: '#b26f9a',
    500: '#8e2f71',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f71;
$custom-light: #b26f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f71",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 318.316,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46729,
    "c": 0.1485,
    "h": 341.9
  },
  "luminance": 0.08976
}

Semantic roles & 50–950 ramp

primary
#8E2F71
secondary
#64B57D
accent
#DA794E
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8E2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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