#8E227D#8E227D

#8E227D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.174 H 335.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8E227D
RGBrgb(142, 34, 125)
HSLhsl(309, 61%, 35%)
HSVhsv(309, 76%, 56%)
CMYKcmyk(0%, 76.1%, 12%, 44.3%)
CIE-LABlab(34.76, 53.98, -26.56)
CIE-LCHlch(34.76, 60.16, 333.80°)
OKLaboklab(46.05% 0.1577 -0.0726)
OKLCHoklch(46.05% 0.174 335.3)
XYZxyz(15.4292, 8.3769, 20.2024)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E227D #228E33
analogous
#69228E #8E227D #8E2247
triadic
#8E227D #7D8E22 #227D8E
tetradic
#8E227D #8E6922 #228E33 #22478E
square
#8E227D #8E6922 #228E33 #22478E
split-complementary
#8E227D #478E22 #228E69
monochromatic
#2B0A26 #5D1652 #8E227D #BF2EA8 #D654C2

Accessibility & contrast

On white

7.85
#8E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8E227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E227D
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E227D#FFFFFF#000000##FFFFFF
##8E227D1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#49577A
Tritanopia (blue-blind)
#952B4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e227d;
/* rgb */ color: rgb(142, 34, 125);
/* oklch */ color: oklch(46.1% 0.174 335.3);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8e227d',
    950: '#000000',
  },
}
SCSS
$custom: #8e227d;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e227d",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 309.444,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46054,
    "c": 0.17363,
    "h": 335.3
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#8E227D
secondary
#52BA62
accent
#E45D43
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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