#8D229F#8D229F

#8D229F is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.200 H 321.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8D229F
RGBrgb(141, 34, 159)
HSLhsl(291, 65%, 38%)
HSVhsv(291, 79%, 62%)
CMYKcmyk(11.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(36.58, 59.52, -44.57)
CIE-LCHlch(36.58, 74.36, 323.17°)
OKLaboklab(47.96% 0.1561 -0.1249)
OKLCHoklch(47.96% 0.2 321.3)
XYZxyz(17.8138, 9.3110, 33.6531)
Luminance0.0931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D229F #349F22
analogous
#4E229F #8D229F #9F2272
triadic
#8D229F #9F8D22 #229F8D
tetradic
#8D229F #9F4E22 #349F22 #22729F
square
#8D229F #9F4E22 #349F22 #22729F
split-complementary
#8D229F #729F22 #229F4E
monochromatic
#340C3A #60176D #8D229F #BA2DD1 #CB5FDD

Accessibility & contrast

On white

7.34
#8D229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8D229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D229F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D229F#FFFFFF#000000##FFFFFF
##8D229F1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#335A9C
Tritanopia (blue-blind)
#8E3C60
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8d229f;
/* rgb */ color: rgb(141, 34, 159);
/* oklch */ color: oklch(48.0% 0.200 321.3);
Tailwind
colors: {
  custom: {
    50: '#b26abc',
    500: '#8d229f',
    950: '#000000',
  },
}
SCSS
$custom: #8d229f;
$custom-light: #b26abc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d229f",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 291.36,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47962,
    "c": 0.1999,
    "h": 321.3
  },
  "luminance": 0.0931
}

Semantic roles & 50–950 ramp

primary
#8D229F
secondary
#6AC15B
accent
#E84058
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8D229F

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

Preview Lab → · Contrast checker → · Palette generator →

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