#8C229E#8C229E

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

Color values

HEX#8C229E
RGBrgb(140, 34, 158)
HSLhsl(291, 65%, 38%)
HSVhsv(291, 78%, 62%)
CMYKcmyk(11.4%, 78.5%, 0%, 38%)
CIE-LABlab(36.35, 59.13, -44.35)
CIE-LCHlch(36.35, 73.92, 323.13°)
OKLaboklab(47.75% 0.155 -0.1243)
OKLCHoklch(47.75% 0.199 321.3)
XYZxyz(17.5581, 9.1891, 33.1900)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C229E #349E22
analogous
#4E229E #8C229E #9E2272
triadic
#8C229E #9E8C22 #229E8C
tetradic
#8C229E #9E4E22 #349E22 #22729E
square
#8C229E #9E4E22 #349E22 #22729E
split-complementary
#8C229E #729E22 #229E4E
monochromatic
#330C39 #5F176C #8C229E #B92DD0 #CA5EDC

Accessibility & contrast

On white

7.40
#8C229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8C229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C229E
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C229E#FFFFFF#000000##FFFFFF
##8C229E1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#32599B
Tritanopia (blue-blind)
#8D3C60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8c229e;
/* rgb */ color: rgb(140, 34, 158);
/* oklch */ color: oklch(47.7% 0.199 321.3);
Tailwind
colors: {
  custom: {
    50: '#b26abb',
    500: '#8c229e',
    950: '#000000',
  },
}
SCSS
$custom: #8c229e;
$custom-light: #b26abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c229e",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 291.29,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47746,
    "c": 0.19867,
    "h": 321.3
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C229E

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

Preview Lab → · Contrast checker → · Palette generator →

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