#8D228D#8D228D

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

Color values

HEX#8D228D
RGBrgb(141, 34, 141)
HSLhsl(300, 61%, 34%)
HSVhsv(300, 76%, 55%)
CMYKcmyk(0%, 75.9%, 0%, 44.7%)
CIE-LABlab(35.46, 56.34, -35.38)
CIE-LCHlch(35.46, 66.53, 327.87°)
OKLaboklab(46.81% 0.1572 -0.0981)
OKLCHoklch(46.81% 0.185 328)
XYZxyz(16.3641, 8.7311, 26.0175)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D228D #228D22
analogous
#58228D #8D228D #8D2258
triadic
#8D228D #8D8D22 #228D8D
tetradic
#8D228D #8D5822 #228D22 #22588D
square
#8D228D #8D5822 #228D22 #22588D
split-complementary
#8D228D #588D22 #228D58
monochromatic
#2A0A2A #5C165C #8D228D #BE2EBE #D654D6

Accessibility & contrast

On white

7.65
#8D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D228D
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D228D#FFFFFF#000000##FFFFFF
##8D228D1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094B90
Deuteranopia (green-blind)
#40588A
Tritanopia (blue-blind)
#923356
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d228d;
/* rgb */ color: rgb(141, 34, 141);
/* oklch */ color: oklch(46.8% 0.185 328.0);
Tailwind
colors: {
  custom: {
    50: '#b26aaf',
    500: '#8d228d',
    950: '#000000',
  },
}
SCSS
$custom: #8d228d;
$custom-light: #b26aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d228d",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 300,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46812,
    "c": 0.1853,
    "h": 328
  },
  "luminance": 0.0873
}

Semantic roles & 50–950 ramp

primary
#8D228D
secondary
#51B951
accent
#E44444
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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