#8E228C#8E228C

#8E228C is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.185 H 328.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8E228C
RGBrgb(142, 34, 140)
HSLhsl(301, 61%, 35%)
HSVhsv(301, 76%, 56%)
CMYKcmyk(0%, 76.1%, 1.4%, 44.3%)
CIE-LABlab(35.58, 56.39, -34.57)
CIE-LCHlch(35.58, 66.15, 328.49°)
OKLaboklab(46.91% 0.1583 -0.0957)
OKLCHoklch(46.91% 0.185 328.8)
XYZxyz(16.4608, 8.7895, 25.6354)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E228C #228E24
analogous
#5A228E #8E228C #8E2256
triadic
#8E228C #8C8E22 #228C8E
tetradic
#8E228C #8E5A22 #228E24 #22568E
square
#8E228C #8E5A22 #228E24 #22568E
split-complementary
#8E228C #568E22 #228E5A
monochromatic
#2B0A2B #5D165B #8E228C #BF2EBD #D654D4

Accessibility & contrast

On white

7.62
#8E228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8E228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E228C
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E228C#FFFFFF#000000##FFFFFF
##8E228C1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B8F
Deuteranopia (green-blind)
#415989
Tritanopia (blue-blind)
#933256
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e228c;
/* rgb */ color: rgb(142, 34, 140);
/* oklch */ color: oklch(46.9% 0.185 328.8);
Tailwind
colors: {
  custom: {
    50: '#b36aae',
    500: '#8e228c',
    950: '#000000',
  },
}
SCSS
$custom: #8e228c;
$custom-light: #b36aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8e228c",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 301.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46908,
    "c": 0.18501,
    "h": 328.8
  },
  "luminance": 0.08788
}

Semantic roles & 50–950 ramp

primary
#8E228C
secondary
#52BA54
accent
#E44643
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E228C

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

Preview Lab → · Contrast checker → · Palette generator →

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