#8E228E#8E228E

#8E228E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.187 H 328.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8E228E
RGBrgb(142, 34, 142)
HSLhsl(300, 61%, 35%)
HSVhsv(300, 76%, 56%)
CMYKcmyk(0%, 76.1%, 0%, 44.3%)
CIE-LABlab(35.69, 56.73, -35.62)
CIE-LCHlch(35.69, 66.98, 327.88°)
OKLaboklab(47.03% 0.1583 -0.0987)
OKLCHoklch(47.03% 0.187 328.1)
XYZxyz(16.6096, 8.8491, 26.4192)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E228E #228E22
analogous
#58228E #8E228E #8E2258
triadic
#8E228E #8E8E22 #228E8E
tetradic
#8E228E #8E5822 #228E22 #22588E
square
#8E228E #8E5822 #228E22 #22588E
split-complementary
#8E228E #588E22 #228E58
monochromatic
#2B0A2B #5D165D #8E228E #BF2EBF #D654D6

Accessibility & contrast

On white

7.58
#8E228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8E228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E228E
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E228E#FFFFFF#000000##FFFFFF
##8E228E1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#40598B
Tritanopia (blue-blind)
#933357
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e228e;
/* rgb */ color: rgb(142, 34, 142);
/* oklch */ color: oklch(47.0% 0.187 328.1);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8e228e',
    950: '#000000',
  },
}
SCSS
$custom: #8e228e;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e228e",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 300,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.47029,
    "c": 0.18657,
    "h": 328.1
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#8E228E
secondary
#52BA52
accent
#E44343
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E228E

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

Preview Lab → · Contrast checker → · Palette generator →

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