#8E2272#8E2272

#8E2272 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.5% C 0.166 H 340.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8E2272
RGBrgb(142, 34, 114)
HSLhsl(316, 61%, 35%)
HSVhsv(316, 76%, 56%)
CMYKcmyk(0%, 76.1%, 19.7%, 44.3%)
CIE-LABlab(34.21, 52.35, -20.49)
CIE-LCHlch(34.21, 56.21, 338.62°)
OKLaboklab(45.49% 0.1564 -0.0553)
OKLCHoklch(45.49% 0.166 340.5)
XYZxyz(14.7651, 8.1112, 16.7044)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2272 #228E3E
analogous
#74228E #8E2272 #8E223C
triadic
#8E2272 #728E22 #22728E
tetradic
#8E2272 #8E7422 #228E3E #223C8E
square
#8E2272 #8E7422 #228E3E #223C8E
split-complementary
#8E2272 #3C8E22 #228E74
monochromatic
#2B0A23 #5D164A #8E2272 #BF2E9A #D654B4

Accessibility & contrast

On white

8.01
#8E2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2272
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2272#FFFFFF#000000##FFFFFF
##8E22721.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4574
Deuteranopia (green-blind)
#4D5770
Tritanopia (blue-blind)
#972547
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e2272;
/* rgb */ color: rgb(142, 34, 114);
/* oklch */ color: oklch(45.5% 0.166 340.5);
Tailwind
colors: {
  custom: {
    50: '#b3699a',
    500: '#8e2272',
    950: '#000000',
  },
}
SCSS
$custom: #8e2272;
$custom-light: #b3699a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2272",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 315.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45486,
    "c": 0.1659,
    "h": 340.5
  },
  "luminance": 0.0811
}

Semantic roles & 50–950 ramp

primary
#8E2272
secondary
#52BA6D
accent
#E46D43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2272

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

Preview Lab → · Contrast checker → · Palette generator →

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