#8E226F#8E226F

#8E226F is a mid, vivid pink. Relative luminance 0.080; OKLCH L 45.3% C 0.164 H 342.1°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8E226F
RGBrgb(142, 34, 111)
HSLhsl(317, 61%, 35%)
HSVhsv(317, 76%, 56%)
CMYKcmyk(0%, 76.1%, 21.8%, 44.3%)
CIE-LABlab(34.07, 51.92, -18.81)
CIE-LCHlch(34.07, 55.22, 340.09°)
OKLaboklab(45.34% 0.156 -0.0505)
OKLCHoklch(45.34% 0.164 342.1)
XYZxyz(14.5971, 8.0440, 15.8198)
Luminance0.0804 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E226F #228E41
analogous
#77228E #8E226F #8E2239
triadic
#8E226F #6F8E22 #226F8E
tetradic
#8E226F #8E7722 #228E41 #22398E
square
#8E226F #8E7722 #228E41 #22398E
split-complementary
#8E226F #398E22 #228E77
monochromatic
#2B0A22 #5D1648 #8E226F #BF2E96 #D654B1

Accessibility & contrast

On white

8.05
#8E226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E226F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E226F#FFFFFF#000000##FFFFFF
##8E226F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4571
Deuteranopia (green-blind)
#4E566D
Tritanopia (blue-blind)
#972346
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e226f;
/* rgb */ color: rgb(142, 34, 111);
/* oklch */ color: oklch(45.3% 0.164 342.1);
Tailwind
colors: {
  custom: {
    50: '#b36998',
    500: '#8e226f',
    950: '#000000',
  },
}
SCSS
$custom: #8e226f;
$custom-light: #b36998;
$custom-dark: #000000;
JSON
{
  "hex": "#8e226f",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 317.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.16392,
    "h": 342.1
  },
  "luminance": 0.08043
}

Semantic roles & 50–950 ramp

primary
#8E226F
secondary
#52BA70
accent
#E47243
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070D
muted
#807A7E

Preview Lab

Preview with #8E226F

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

Preview Lab → · Contrast checker → · Palette generator →

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