#8E2271#8E2271

#8E2271 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.4% C 0.165 H 341.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8E2271
RGBrgb(142, 34, 113)
HSLhsl(316, 61%, 35%)
HSVhsv(316, 76%, 56%)
CMYKcmyk(0%, 76.1%, 20.4%, 44.3%)
CIE-LABlab(34.17, 52.20, -19.93)
CIE-LCHlch(34.17, 55.88, 339.10°)
OKLaboklab(45.44% 0.1563 -0.0537)
OKLCHoklch(45.44% 0.165 341)
XYZxyz(14.7084, 8.0886, 16.4062)
Luminance0.0809 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2271 #228E3F
analogous
#75228E #8E2271 #8E223B
triadic
#8E2271 #718E22 #22718E
tetradic
#8E2271 #8E7522 #228E3F #223B8E
square
#8E2271 #8E7522 #228E3F #223B8E
split-complementary
#8E2271 #3B8E22 #228E75
monochromatic
#2B0A22 #5D164A #8E2271 #BF2E98 #D654B3

Accessibility & contrast

On white

8.02
#8E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8E2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2271
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2271#FFFFFF#000000##FFFFFF
##8E22711.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#972447
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e2271;
/* rgb */ color: rgb(142, 34, 113);
/* oklch */ color: oklch(45.4% 0.165 341.0);
Tailwind
colors: {
  custom: {
    50: '#b3699a',
    500: '#8e2271',
    950: '#000000',
  },
}
SCSS
$custom: #8e2271;
$custom-light: #b3699a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2271",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 316.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45437,
    "c": 0.16524,
    "h": 341
  },
  "luminance": 0.08087
}

Semantic roles & 50–950 ramp

primary
#8E2271
secondary
#52BA6E
accent
#E46F43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2271

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

Preview Lab → · Contrast checker → · Palette generator →

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