#8E2172#8E2172

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

Color values

HEX#8E2172
RGBrgb(142, 33, 114)
HSLhsl(315, 62%, 34%)
HSVhsv(315, 77%, 56%)
CMYKcmyk(0%, 76.8%, 19.7%, 44.3%)
CIE-LABlab(34.10, 52.68, -20.67)
CIE-LCHlch(34.10, 56.59, 338.57°)
OKLaboklab(45.4% 0.1574 -0.0558)
OKLCHoklch(45.4% 0.167 340.5)
XYZxyz(14.7369, 8.0549, 16.6950)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2172 #218E3D
analogous
#74218E #8E2172 #8E213C
triadic
#8E2172 #728E21 #21728E
tetradic
#8E2172 #8E7421 #218E3D #213C8E
square
#8E2172 #8E7421 #218E3D #213C8E
split-complementary
#8E2172 #3C8E21 #218E74
monochromatic
#2B0A22 #5C154A #8E2172 #C02D9A #D752B5

Accessibility & contrast

On white

8.04
#8E2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2172
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2172#FFFFFF#000000##FFFFFF
##8E21721.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2172;
/* rgb */ color: rgb(142, 33, 114);
/* oklch */ color: oklch(45.4% 0.167 340.5);
Tailwind
colors: {
  custom: {
    50: '#b3689a',
    500: '#8e2172',
    950: '#000000',
  },
}
SCSS
$custom: #8e2172;
$custom-light: #b3689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2172",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 315.413,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.16702,
    "h": 340.5
  },
  "luminance": 0.08053
}

Semantic roles & 50–950 ramp

primary
#8E2172
secondary
#50BA6C
accent
#E56C42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8E2172

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

Preview Lab → · Contrast checker → · Palette generator →

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