#8D227A#8D227A

#8D227A is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.7% C 0.171 H 336.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8D227A
RGBrgb(141, 34, 122)
HSLhsl(311, 61%, 34%)
HSVhsv(311, 76%, 55%)
CMYKcmyk(0%, 75.9%, 13.5%, 44.7%)
CIE-LABlab(34.42, 53.28, -25.22)
CIE-LCHlch(34.42, 58.94, 334.67°)
OKLaboklab(45.73% 0.1564 -0.0687)
OKLCHoklch(45.73% 0.171 336.3)
XYZxyz(15.0696, 8.2133, 19.2002)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D227A #228D35
analogous
#6B228D #8D227A #8D2245
triadic
#8D227A #7A8D22 #227A8D
tetradic
#8D227A #8D6B22 #228D35 #22458D
square
#8D227A #8D6B22 #228D35 #22458D
split-complementary
#8D227A #458D22 #228D6B
monochromatic
#2A0A25 #5C164F #8D227A #BE2EA5 #D654BF

Accessibility & contrast

On white

7.95
#8D227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8D227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D227A
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D227A#FFFFFF#000000##FFFFFF
##8D227A1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#495777
Tritanopia (blue-blind)
#952A4C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d227a;
/* rgb */ color: rgb(141, 34, 122);
/* oklch */ color: oklch(45.7% 0.171 336.3);
Tailwind
colors: {
  custom: {
    50: '#b269a0',
    500: '#8d227a',
    950: '#000000',
  },
}
SCSS
$custom: #8d227a;
$custom-light: #b269a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d227a",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 310.654,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45731,
    "c": 0.17086,
    "h": 336.3
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

primary
#8D227A
secondary
#51B964
accent
#E46044
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D227A

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

Preview Lab → · Contrast checker → · Palette generator →

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