#8E2287#8E2287

#8E2287 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.181 H 330.9°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8E2287
RGBrgb(142, 34, 135)
HSLhsl(304, 61%, 35%)
HSVhsv(304, 76%, 56%)
CMYKcmyk(0%, 76.1%, 4.9%, 44.3%)
CIE-LABlab(35.29, 55.57, -31.94)
CIE-LCHlch(35.29, 64.09, 330.11°)
OKLaboklab(46.61% 0.1583 -0.088)
OKLCHoklch(46.61% 0.181 330.9)
XYZxyz(16.1005, 8.6454, 23.7377)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2287 #228E29
analogous
#5F228E #8E2287 #8E2251
triadic
#8E2287 #878E22 #22878E
tetradic
#8E2287 #8E5F22 #228E29 #22518E
square
#8E2287 #8E5F22 #228E29 #22518E
split-complementary
#8E2287 #518E22 #228E5F
monochromatic
#2B0A29 #5D1658 #8E2287 #BF2EB6 #D654CE

Accessibility & contrast

On white

7.70
#8E2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8E2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2287
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2287#FFFFFF#000000##FFFFFF
##8E22871.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#445884
Tritanopia (blue-blind)
#943053
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e2287;
/* rgb */ color: rgb(142, 34, 135);
/* oklch */ color: oklch(46.6% 0.181 330.9);
Tailwind
colors: {
  custom: {
    50: '#b369aa',
    500: '#8e2287',
    950: '#000000',
  },
}
SCSS
$custom: #8e2287;
$custom-light: #b369aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2287",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 303.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46614,
    "c": 0.18112,
    "h": 330.9
  },
  "luminance": 0.08644
}

Semantic roles & 50–950 ramp

primary
#8E2287
secondary
#52BA59
accent
#E44E43
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2287

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

Preview Lab → · Contrast checker → · Palette generator →

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