#8E228A#8E228A

#8E228A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.183 H 329.7°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#8E228A
RGBrgb(142, 34, 138)
HSLhsl(302, 61%, 35%)
HSVhsv(302, 76%, 56%)
CMYKcmyk(0%, 76.1%, 2.8%, 44.3%)
CIE-LABlab(35.46, 56.06, -33.52)
CIE-LCHlch(35.46, 65.32, 329.12°)
OKLaboklab(46.79% 0.1583 -0.0926)
OKLCHoklch(46.79% 0.183 329.7)
XYZxyz(16.3147, 8.7311, 24.8658)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E228A #228E26
analogous
#5C228E #8E228A #8E2254
triadic
#8E228A #8A8E22 #228A8E
tetradic
#8E228A #8E5C22 #228E26 #22548E
square
#8E228A #8E5C22 #228E26 #22548E
split-complementary
#8E228A #548E22 #228E5C
monochromatic
#2B0A2A #5D165A #8E228A #BF2EBA #D654D1

Accessibility & contrast

On white

7.65
#8E228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E228A
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E228A#FFFFFF#000000##FFFFFF
##8E228A1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124A8D
Deuteranopia (green-blind)
#425887
Tritanopia (blue-blind)
#933154
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e228a;
/* rgb */ color: rgb(142, 34, 138);
/* oklch */ color: oklch(46.8% 0.183 329.7);
Tailwind
colors: {
  custom: {
    50: '#b36aac',
    500: '#8e228a',
    950: '#000000',
  },
}
SCSS
$custom: #8e228a;
$custom-light: #b36aac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e228a",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 302.222,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46789,
    "c": 0.18345,
    "h": 329.7
  },
  "luminance": 0.0873
}

Semantic roles & 50–950 ramp

primary
#8E228A
secondary
#52BA56
accent
#E44943
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E228A

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

Preview Lab → · Contrast checker → · Palette generator →

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