#8E227F#8E227F

#8E227F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.175 H 334.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8E227F
RGBrgb(142, 34, 127)
HSLhsl(308, 61%, 35%)
HSVhsv(308, 76%, 56%)
CMYKcmyk(0%, 76.1%, 10.6%, 44.3%)
CIE-LABlab(34.86, 54.29, -27.65)
CIE-LCHlch(34.86, 60.92, 333.01°)
OKLaboklab(46.16% 0.1579 -0.0757)
OKLCHoklch(46.16% 0.175 334.4)
XYZxyz(15.5583, 8.4285, 20.8820)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E227F #228E31
analogous
#67228E #8E227F #8E2249
triadic
#8E227F #7F8E22 #227F8E
tetradic
#8E227F #8E6722 #228E31 #22498E
square
#8E227F #8E6722 #228E31 #22498E
split-complementary
#8E227F #498E22 #228E67
monochromatic
#2B0A27 #5D1653 #8E227F #BF2EAB #D654C4

Accessibility & contrast

On white

7.82
#8E227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8E227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E227F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E227F#FFFFFF#000000##FFFFFF
##8E227F1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204882
Deuteranopia (green-blind)
#48587C
Tritanopia (blue-blind)
#952C4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e227f;
/* rgb */ color: rgb(142, 34, 127);
/* oklch */ color: oklch(46.2% 0.175 334.4);
Tailwind
colors: {
  custom: {
    50: '#b369a4',
    500: '#8e227f',
    950: '#000000',
  },
}
SCSS
$custom: #8e227f;
$custom-light: #b369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e227f",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 308.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46163,
    "c": 0.17509,
    "h": 334.4
  },
  "luminance": 0.08427
}

Semantic roles & 50–950 ramp

primary
#8E227F
secondary
#52BA60
accent
#E45A43
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E227F

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

Preview Lab → · Contrast checker → · Palette generator →

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