#8E227E#8E227E

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

Color values

HEX#8E227E
RGBrgb(142, 34, 126)
HSLhsl(309, 61%, 35%)
HSVhsv(309, 76%, 56%)
CMYKcmyk(0%, 76.1%, 11.3%, 44.3%)
CIE-LABlab(34.81, 54.13, -27.11)
CIE-LCHlch(34.81, 60.54, 333.40°)
OKLaboklab(46.11% 0.1578 -0.0741)
OKLCHoklch(46.11% 0.174 334.8)
XYZxyz(15.4934, 8.4026, 20.5405)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E227E #228E32
analogous
#68228E #8E227E #8E2248
triadic
#8E227E #7E8E22 #227E8E
tetradic
#8E227E #8E6822 #228E32 #22488E
square
#8E227E #8E6822 #228E32 #22488E
split-complementary
#8E227E #488E22 #228E68
monochromatic
#2B0A26 #5D1652 #8E227E #BF2EAA #D654C3

Accessibility & contrast

On white

7.84
#8E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E227E
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E227E#FFFFFF#000000##FFFFFF
##8E227E1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#952B4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e227e;
/* rgb */ color: rgb(142, 34, 126);
/* oklch */ color: oklch(46.1% 0.174 334.8);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8e227e',
    950: '#000000',
  },
}
SCSS
$custom: #8e227e;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e227e",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 308.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46109,
    "c": 0.17436,
    "h": 334.8
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#8E227E
secondary
#52BA61
accent
#E45B43
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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