#8D227D#8D227D

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

Color values

HEX#8D227D
RGBrgb(141, 34, 125)
HSLhsl(309, 61%, 34%)
HSVhsv(309, 76%, 55%)
CMYKcmyk(0%, 75.9%, 11.3%, 44.7%)
CIE-LABlab(34.58, 53.74, -26.85)
CIE-LCHlch(34.58, 60.08, 333.45°)
OKLaboklab(45.89% 0.1567 -0.0734)
OKLCHoklch(45.89% 0.173 334.9)
XYZxyz(15.2584, 8.2888, 20.1943)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D227D #228D32
analogous
#68228D #8D227D #8D2248
triadic
#8D227D #7D8D22 #227D8D
tetradic
#8D227D #8D6822 #228D32 #22488D
square
#8D227D #8D6822 #228D32 #22488D
split-complementary
#8D227D #488D22 #228D68
monochromatic
#2A0A26 #5C1651 #8D227D #BE2EA9 #D654C2

Accessibility & contrast

On white

7.90
#8D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D227D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D227D#FFFFFF#000000##FFFFFF
##8D227D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#942B4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d227d;
/* rgb */ color: rgb(141, 34, 125);
/* oklch */ color: oklch(45.9% 0.173 334.9);
Tailwind
colors: {
  custom: {
    50: '#b269a3',
    500: '#8d227d',
    950: '#000000',
  },
}
SCSS
$custom: #8d227d;
$custom-light: #b269a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d227d",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 308.972,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.17305,
    "h": 334.9
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#8D227D
secondary
#51B961
accent
#E45C44
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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