#8C229B#8C229B

#8C229B is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.196 H 322.3°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8C229B
RGBrgb(140, 34, 155)
HSLhsl(293, 64%, 37%)
HSVhsv(293, 78%, 61%)
CMYKcmyk(9.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(36.15, 58.59, -42.84)
CIE-LCHlch(36.15, 72.58, 323.82°)
OKLaboklab(47.55% 0.1553 -0.1199)
OKLCHoklch(47.55% 0.196 322.3)
XYZxyz(17.3030, 9.0871, 31.8466)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C229B #319B22
analogous
#50229B #8C229B #9B226E
triadic
#8C229B #9B8C22 #229B8C
tetradic
#8C229B #9B5022 #319B22 #226E9B
square
#8C229B #9B5022 #319B22 #226E9B
split-complementary
#8C229B #6E9B22 #229B50
monochromatic
#310C37 #5F1769 #8C229B #B92DCD #CC5CDB

Accessibility & contrast

On white

7.45
#8C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8C229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C229B
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C229B#FFFFFF#000000##FFFFFF
##8C229B1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#355998
Tritanopia (blue-blind)
#8E3A5E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8c229b;
/* rgb */ color: rgb(140, 34, 155);
/* oklch */ color: oklch(47.5% 0.196 322.3);
Tailwind
colors: {
  custom: {
    50: '#b16ab9',
    500: '#8c229b',
    950: '#000000',
  },
}
SCSS
$custom: #8c229b;
$custom-light: #b16ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#8c229b",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 292.562,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47546,
    "c": 0.19618,
    "h": 322.3
  },
  "luminance": 0.09086
}

Semantic roles & 50–950 ramp

primary
#8C229B
secondary
#66C059
accent
#E74155
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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