#8D227C#8D227C

#8D227C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.172 H 335.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#8D227C
RGBrgb(141, 34, 124)
HSLhsl(310, 61%, 34%)
HSVhsv(310, 76%, 55%)
CMYKcmyk(0%, 75.9%, 12.1%, 44.7%)
CIE-LABlab(34.53, 53.58, -26.31)
CIE-LCHlch(34.53, 59.69, 333.85°)
OKLaboklab(45.84% 0.1566 -0.0719)
OKLCHoklch(45.84% 0.172 335.4)
XYZxyz(15.1948, 8.2634, 19.8596)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D227C #228D33
analogous
#69228D #8D227C #8D2247
triadic
#8D227C #7C8D22 #227C8D
tetradic
#8D227C #8D6922 #228D33 #22478D
square
#8D227C #8D6922 #228D33 #22478D
split-complementary
#8D227C #478D22 #228D69
monochromatic
#2A0A25 #5C1651 #8D227C #BE2EA7 #D654C1

Accessibility & contrast

On white

7.92
#8D227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8D227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D227C
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D227C#FFFFFF#000000##FFFFFF
##8D227C1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#485779
Tritanopia (blue-blind)
#942B4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d227c;
/* rgb */ color: rgb(141, 34, 124);
/* oklch */ color: oklch(45.8% 0.172 335.4);
Tailwind
colors: {
  custom: {
    50: '#b269a2',
    500: '#8d227c',
    950: '#000000',
  },
}
SCSS
$custom: #8d227c;
$custom-light: #b269a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d227c",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 309.533,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45838,
    "c": 0.17232,
    "h": 335.4
  },
  "luminance": 0.08262
}

Semantic roles & 50–950 ramp

primary
#8D227C
secondary
#51B962
accent
#E45D44
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D227C

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

Preview Lab → · Contrast checker → · Palette generator →

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