#8D228C#8D228C

#8D228C is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.185 H 328.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8D228C
RGBrgb(141, 34, 140)
HSLhsl(301, 61%, 34%)
HSVhsv(301, 76%, 55%)
CMYKcmyk(0%, 75.9%, 0.7%, 44.7%)
CIE-LABlab(35.40, 56.17, -34.86)
CIE-LCHlch(35.40, 66.11, 328.18°)
OKLaboklab(46.75% 0.1572 -0.0965)
OKLCHoklch(46.75% 0.185 328.4)
XYZxyz(16.2900, 8.7014, 25.6274)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D228C #228D23
analogous
#59228D #8D228C #8D2257
triadic
#8D228C #8C8D22 #228C8D
tetradic
#8D228C #8D5922 #228D23 #22578D
square
#8D228C #8D5922 #228D23 #22578D
split-complementary
#8D228C #578D22 #228D59
monochromatic
#2A0A2A #5C165B #8D228C #BE2EBD #D654D4

Accessibility & contrast

On white

7.66
#8D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8D228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D228C
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D228C#FFFFFF#000000##FFFFFF
##8D228C1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8F
Deuteranopia (green-blind)
#405889
Tritanopia (blue-blind)
#923356
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d228c;
/* rgb */ color: rgb(141, 34, 140);
/* oklch */ color: oklch(46.8% 0.185 328.4);
Tailwind
colors: {
  custom: {
    50: '#b26aae',
    500: '#8d228c',
    950: '#000000',
  },
}
SCSS
$custom: #8d228c;
$custom-light: #b26aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8d228c",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 300.561,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46751,
    "c": 0.18451,
    "h": 328.4
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#8D228C
secondary
#51B952
accent
#E44544
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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