#8E228B#8E228B

#8E228B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.184 H 329.3°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8E228B
RGBrgb(142, 34, 139)
HSLhsl(302, 61%, 35%)
HSVhsv(302, 76%, 56%)
CMYKcmyk(0%, 76.1%, 2.1%, 44.3%)
CIE-LABlab(35.52, 56.23, -34.05)
CIE-LCHlch(35.52, 65.73, 328.80°)
OKLaboklab(46.85% 0.1583 -0.0942)
OKLCHoklch(46.85% 0.184 329.3)
XYZxyz(16.3874, 8.7602, 25.2489)
Luminance0.0876 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E228B #228E25
analogous
#5B228E #8E228B #8E2255
triadic
#8E228B #8B8E22 #228B8E
tetradic
#8E228B #8E5B22 #228E25 #22558E
square
#8E228B #8E5B22 #228E25 #22558E
split-complementary
#8E228B #558E22 #228E5B
monochromatic
#2B0A2A #5D165B #8E228B #BF2EBB #D654D3

Accessibility & contrast

On white

7.63
#8E228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8E228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E228B
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E228B#FFFFFF#000000##FFFFFF
##8E228B1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#425988
Tritanopia (blue-blind)
#933255
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e228b;
/* rgb */ color: rgb(142, 34, 139);
/* oklch */ color: oklch(46.8% 0.184 329.3);
Tailwind
colors: {
  custom: {
    50: '#b36aad',
    500: '#8e228b',
    950: '#000000',
  },
}
SCSS
$custom: #8e228b;
$custom-light: #b36aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e228b",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 301.667,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46848,
    "c": 0.18422,
    "h": 329.3
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

primary
#8E228B
secondary
#52BA55
accent
#E44843
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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