#8E217B#8E217B

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

Color values

HEX#8E217B
RGBrgb(142, 33, 123)
HSLhsl(310, 62%, 34%)
HSVhsv(310, 77%, 56%)
CMYKcmyk(0%, 76.8%, 13.4%, 44.3%)
CIE-LABlab(34.54, 54.00, -25.65)
CIE-LCHlch(34.54, 59.78, 334.59°)
OKLaboklab(45.87% 0.1585 -0.0699)
OKLCHoklch(45.87% 0.173 336.2)
XYZxyz(15.2746, 8.2700, 19.5269)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E217B #218E34
analogous
#6B218E #8E217B #8E2144
triadic
#8E217B #7B8E21 #217B8E
tetradic
#8E217B #8E6B21 #218E34 #21448E
square
#8E217B #8E6B21 #218E34 #21448E
split-complementary
#8E217B #448E21 #218E6B
monochromatic
#2B0A25 #5C1550 #8E217B #C02DA6 #D752C0

Accessibility & contrast

On white

7.91
#8E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E217B
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E217B#FFFFFF#000000##FFFFFF
##8E217B1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#495778
Tritanopia (blue-blind)
#96294C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e217b;
/* rgb */ color: rgb(142, 33, 123);
/* oklch */ color: oklch(45.9% 0.173 336.2);
Tailwind
colors: {
  custom: {
    50: '#b369a1',
    500: '#8e217b',
    950: '#000000',
  },
}
SCSS
$custom: #8e217b;
$custom-light: #b369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e217b",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 310.459,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.17327,
    "h": 336.2
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#8E217B
secondary
#50BA63
accent
#E55F42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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