#8D227F#8D227F

#8D227F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.175 H 334.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8D227F
RGBrgb(141, 34, 127)
HSLhsl(308, 61%, 34%)
HSVhsv(308, 76%, 55%)
CMYKcmyk(0%, 75.9%, 9.9%, 44.7%)
CIE-LABlab(34.68, 54.05, -27.94)
CIE-LCHlch(34.68, 60.84, 332.67°)
OKLaboklab(46% 0.1569 -0.0765)
OKLCHoklch(46% 0.175 334)
XYZxyz(15.3874, 8.3404, 20.8740)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D227F #228D30
analogous
#66228D #8D227F #8D224A
triadic
#8D227F #7F8D22 #227F8D
tetradic
#8D227F #8D6622 #228D30 #224A8D
square
#8D227F #8D6622 #228D30 #224A8D
split-complementary
#8D227F #4A8D22 #228D66
monochromatic
#2A0A26 #5C1653 #8D227F #BE2EAB #D654C5

Accessibility & contrast

On white

7.87
#8D227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8D227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D227F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D227F#FFFFFF#000000##FFFFFF
##8D227F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4882
Deuteranopia (green-blind)
#47577C
Tritanopia (blue-blind)
#942C4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d227f;
/* rgb */ color: rgb(141, 34, 127);
/* oklch */ color: oklch(46.0% 0.175 334.0);
Tailwind
colors: {
  custom: {
    50: '#b269a4',
    500: '#8d227f',
    950: '#000000',
  },
}
SCSS
$custom: #8d227f;
$custom-light: #b269a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d227f",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 307.85,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.17453,
    "h": 334
  },
  "luminance": 0.08339
}

Semantic roles & 50–950 ramp

primary
#8D227F
secondary
#51B95F
accent
#E45944
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D227F

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

Preview Lab → · Contrast checker → · Palette generator →

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