#8E2286#8E2286

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

Color values

HEX#8E2286
RGBrgb(142, 34, 134)
HSLhsl(304, 61%, 35%)
HSVhsv(304, 76%, 56%)
CMYKcmyk(0%, 76.1%, 5.6%, 44.3%)
CIE-LABlab(35.24, 55.40, -31.40)
CIE-LCHlch(35.24, 63.68, 330.45°)
OKLaboklab(46.56% 0.1583 -0.0865)
OKLCHoklch(46.56% 0.18 331.3)
XYZxyz(16.0304, 8.6174, 23.3687)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2286 #228E2A
analogous
#60228E #8E2286 #8E2250
triadic
#8E2286 #868E22 #22868E
tetradic
#8E2286 #8E6022 #228E2A #22508E
square
#8E2286 #8E6022 #228E2A #22508E
split-complementary
#8E2286 #508E22 #228E60
monochromatic
#2B0A29 #5D1657 #8E2286 #BF2EB5 #D654CD

Accessibility & contrast

On white

7.71
#8E2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8E2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2286
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2286#FFFFFF#000000##FFFFFF
##8E22861.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184989
Deuteranopia (green-blind)
#455883
Tritanopia (blue-blind)
#942F52
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e2286;
/* rgb */ color: rgb(142, 34, 134);
/* oklch */ color: oklch(46.6% 0.180 331.3);
Tailwind
colors: {
  custom: {
    50: '#b369a9',
    500: '#8e2286',
    950: '#000000',
  },
}
SCSS
$custom: #8e2286;
$custom-light: #b369a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2286",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 304.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46556,
    "c": 0.18035,
    "h": 331.3
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#8E2286
secondary
#52BA5A
accent
#E44F43
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2286

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

Preview Lab → · Contrast checker → · Palette generator →

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