#8C229D#8C229D

#8C229D is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.198 H 321.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8C229D
RGBrgb(140, 34, 157)
HSLhsl(292, 64%, 37%)
HSVhsv(292, 78%, 62%)
CMYKcmyk(10.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(36.28, 58.95, -43.85)
CIE-LCHlch(36.28, 73.47, 323.36°)
OKLaboklab(47.68% 0.1551 -0.1228)
OKLCHoklch(47.68% 0.198 321.6)
XYZxyz(17.4724, 9.1548, 32.7385)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C229D #339D22
analogous
#4E229D #8C229D #9D2271
triadic
#8C229D #9D8C22 #229D8C
tetradic
#8C229D #9D4E22 #339D22 #22719D
square
#8C229D #9D4E22 #339D22 #22719D
split-complementary
#8C229D #719D22 #229D4E
monochromatic
#320C38 #5F176B #8C229D #B92DCF #CB5DDC

Accessibility & contrast

On white

7.42
#8C229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8C229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C229D
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C229D#FFFFFF#000000##FFFFFF
##8C229D1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#33599A
Tritanopia (blue-blind)
#8D3B5F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8c229d;
/* rgb */ color: rgb(140, 34, 157);
/* oklch */ color: oklch(47.7% 0.198 321.6);
Tailwind
colors: {
  custom: {
    50: '#b16aba',
    500: '#8c229d',
    950: '#000000',
  },
}
SCSS
$custom: #8c229d;
$custom-light: #b16aba;
$custom-dark: #000000;
JSON
{
  "hex": "#8c229d",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 291.707,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47679,
    "c": 0.19784,
    "h": 321.6
  },
  "luminance": 0.09154
}

Semantic roles & 50–950 ramp

primary
#8C229D
secondary
#68C15A
accent
#E74057
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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