#8D228F#8D228F

#8D228F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.187 H 327.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8D228F
RGBrgb(141, 34, 143)
HSLhsl(299, 62%, 35%)
HSVhsv(299, 76%, 56%)
CMYKcmyk(1.4%, 76.2%, 0%, 43.9%)
CIE-LABlab(35.58, 56.68, -36.42)
CIE-LCHlch(35.58, 67.37, 327.27°)
OKLaboklab(46.93% 0.1572 -0.1011)
OKLCHoklch(46.93% 0.187 327.3)
XYZxyz(16.5142, 8.7911, 26.8083)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D228F #248F22
analogous
#57228F #8D228F #8F225B
triadic
#8D228F #8F8D22 #228F8D
tetradic
#8D228F #8F5722 #248F22 #225B8F
square
#8D228F #8F5722 #248F22 #225B8F
split-complementary
#8D228F #5B8F22 #228F57
monochromatic
#2B0A2C #5C165E #8D228F #BE2EC0 #D455D7

Accessibility & contrast

On white

7.61
#8D228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8D228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D228F
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D228F#FFFFFF#000000##FFFFFF
##8D228F1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044B92
Deuteranopia (green-blind)
#3F588C
Tritanopia (blue-blind)
#913457
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d228f;
/* rgb */ color: rgb(141, 34, 143);
/* oklch */ color: oklch(46.9% 0.187 327.3);
Tailwind
colors: {
  custom: {
    50: '#b26ab0',
    500: '#8d228f',
    950: '#000000',
  },
}
SCSS
$custom: #8d228f;
$custom-light: #b26ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d228f",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 298.899,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46934,
    "c": 0.18689,
    "h": 327.3
  },
  "luminance": 0.0879
}

Semantic roles & 50–950 ramp

primary
#8D228F
secondary
#54BA52
accent
#E54346
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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