#8C229F#8C229F

#8C229F is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.8% C 0.200 H 320.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8C229F
RGBrgb(140, 34, 159)
HSLhsl(291, 65%, 38%)
HSVhsv(291, 79%, 62%)
CMYKcmyk(11.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(36.41, 59.32, -44.85)
CIE-LCHlch(36.41, 74.36, 322.91°)
OKLaboklab(47.81% 0.1549 -0.1257)
OKLCHoklch(47.81% 0.2 320.9)
XYZxyz(17.6445, 9.2237, 33.6451)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C229F #359F22
analogous
#4D229F #8C229F #9F2273
triadic
#8C229F #9F8C22 #229F8C
tetradic
#8C229F #9F4D22 #359F22 #22739F
square
#8C229F #9F4D22 #359F22 #22739F
split-complementary
#8C229F #739F22 #229F4D
monochromatic
#330C3A #60176D #8C229F #B82DD1 #CA5FDD

Accessibility & contrast

On white

7.38
#8C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C229F
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C229F#FFFFFF#000000##FFFFFF
##8C229F1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#31599C
Tritanopia (blue-blind)
#8D3C60
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8c229f;
/* rgb */ color: rgb(140, 34, 159);
/* oklch */ color: oklch(47.8% 0.200 320.9);
Tailwind
colors: {
  custom: {
    50: '#b26abc',
    500: '#8c229f',
    950: '#000000',
  },
}
SCSS
$custom: #8c229f;
$custom-light: #b26abc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c229f",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 290.88,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47813,
    "c": 0.1995,
    "h": 320.9
  },
  "luminance": 0.09223
}

Semantic roles & 50–950 ramp

primary
#8C229F
secondary
#6BC15B
accent
#E8405A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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