#8D227E#8D227E

#8D227E is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.174 H 334.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8D227E
RGBrgb(141, 34, 126)
HSLhsl(308, 61%, 34%)
HSVhsv(308, 76%, 55%)
CMYKcmyk(0%, 75.9%, 10.6%, 44.7%)
CIE-LABlab(34.63, 53.89, -27.40)
CIE-LCHlch(34.63, 60.46, 333.05°)
OKLaboklab(45.95% 0.1568 -0.075)
OKLCHoklch(45.95% 0.174 334.4)
XYZxyz(15.3226, 8.3145, 20.5325)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D227E #228D31
analogous
#67228D #8D227E #8D2249
triadic
#8D227E #7E8D22 #227E8D
tetradic
#8D227E #8D6722 #228D31 #22498D
square
#8D227E #8D6722 #228D31 #22498D
split-complementary
#8D227E #498D22 #228D67
monochromatic
#2A0A26 #5C1652 #8D227E #BE2EAA #D654C3

Accessibility & contrast

On white

7.89
#8D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8D227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D227E
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D227E#FFFFFF#000000##FFFFFF
##8D227E1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#942C4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d227e;
/* rgb */ color: rgb(141, 34, 126);
/* oklch */ color: oklch(45.9% 0.174 334.4);
Tailwind
colors: {
  custom: {
    50: '#b269a3',
    500: '#8d227e',
    950: '#000000',
  },
}
SCSS
$custom: #8d227e;
$custom-light: #b269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d227e",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 308.411,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45947,
    "c": 0.17379,
    "h": 334.4
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#8D227E
secondary
#51B960
accent
#E45A44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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