#8E228D#8E228D

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

Color values

HEX#8E228D
RGBrgb(142, 34, 141)
HSLhsl(301, 61%, 35%)
HSVhsv(301, 76%, 56%)
CMYKcmyk(0%, 76.1%, 0.7%, 44.3%)
CIE-LABlab(35.63, 56.56, -35.10)
CIE-LCHlch(35.63, 66.56, 328.18°)
OKLaboklab(46.97% 0.1583 -0.0972)
OKLCHoklch(46.97% 0.186 328.4)
XYZxyz(16.5349, 8.8192, 26.0255)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E228D #228E23
analogous
#59228E #8E228D #8E2257
triadic
#8E228D #8D8E22 #228D8E
tetradic
#8E228D #8E5922 #228E23 #22578E
square
#8E228D #8E5922 #228E23 #22578E
split-complementary
#8E228D #578E22 #228E59
monochromatic
#2B0A2B #5D165C #8E228D #BF2EBE #D654D5

Accessibility & contrast

On white

7.60
#8E228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E228D
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E228D#FFFFFF#000000##FFFFFF
##8E228D1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#41598A
Tritanopia (blue-blind)
#933356
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e228d;
/* rgb */ color: rgb(142, 34, 141);
/* oklch */ color: oklch(47.0% 0.186 328.4);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8e228d',
    950: '#000000',
  },
}
SCSS
$custom: #8e228d;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e228d",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 300.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46968,
    "c": 0.1858,
    "h": 328.4
  },
  "luminance": 0.08818
}

Semantic roles & 50–950 ramp

primary
#8E228D
secondary
#52BA53
accent
#E44543
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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