#8E227A#8E227A

#8E227A is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.9% C 0.171 H 336.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8E227A
RGBrgb(142, 34, 122)
HSLhsl(311, 61%, 35%)
HSVhsv(311, 76%, 56%)
CMYKcmyk(0%, 76.1%, 14.1%, 44.3%)
CIE-LABlab(34.60, 53.52, -24.92)
CIE-LCHlch(34.60, 59.04, 335.03°)
OKLaboklab(45.9% 0.1575 -0.0679)
OKLCHoklch(45.9% 0.171 336.7)
XYZxyz(15.2405, 8.3014, 19.2083)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E227A #228E36
analogous
#6C228E #8E227A #8E2244
triadic
#8E227A #7A8E22 #227A8E
tetradic
#8E227A #8E6C22 #228E36 #22448E
square
#8E227A #8E6C22 #228E36 #22448E
split-complementary
#8E227A #448E22 #228E6C
monochromatic
#2B0A25 #5D1650 #8E227A #BF2EA4 #D654BE

Accessibility & contrast

On white

7.89
#8E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8E227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E227A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E227A#FFFFFF#000000##FFFFFF
##8E227A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#4A5777
Tritanopia (blue-blind)
#96294C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e227a;
/* rgb */ color: rgb(142, 34, 122);
/* oklch */ color: oklch(45.9% 0.171 336.7);
Tailwind
colors: {
  custom: {
    50: '#b369a0',
    500: '#8e227a',
    950: '#000000',
  },
}
SCSS
$custom: #8e227a;
$custom-light: #b369a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e227a",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 311.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45895,
    "c": 0.17146,
    "h": 336.7
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#8E227A
secondary
#52BA65
accent
#E46143
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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