#8E227B#8E227B

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

Color values

HEX#8E227B
RGBrgb(142, 34, 123)
HSLhsl(311, 61%, 35%)
HSVhsv(311, 76%, 56%)
CMYKcmyk(0%, 76.1%, 13.4%, 44.3%)
CIE-LABlab(34.65, 53.67, -25.47)
CIE-LCHlch(34.65, 59.41, 334.61°)
OKLaboklab(45.95% 0.1576 -0.0694)
OKLCHoklch(45.95% 0.172 336.2)
XYZxyz(15.3028, 8.3263, 19.5362)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E227B #228E35
analogous
#6B228E #8E227B #8E2245
triadic
#8E227B #7B8E22 #227B8E
tetradic
#8E227B #8E6B22 #228E35 #22458E
square
#8E227B #8E6B22 #228E35 #22458E
split-complementary
#8E227B #458E22 #228E6B
monochromatic
#2B0A25 #5D1650 #8E227B #BF2EA6 #D654BF

Accessibility & contrast

On white

7.88
#8E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8E227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E227B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E227B#FFFFFF#000000##FFFFFF
##8E227B1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#4A5778
Tritanopia (blue-blind)
#962A4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e227b;
/* rgb */ color: rgb(142, 34, 123);
/* oklch */ color: oklch(45.9% 0.172 336.2);
Tailwind
colors: {
  custom: {
    50: '#b369a1',
    500: '#8e227b',
    950: '#000000',
  },
}
SCSS
$custom: #8e227b;
$custom-light: #b369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e227b",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 310.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45947,
    "c": 0.17218,
    "h": 336.2
  },
  "luminance": 0.08325
}

Semantic roles & 50–950 ramp

primary
#8E227B
secondary
#52BA64
accent
#E46043
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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