#8C22A6#8C22A6

#8C22A6 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.3% C 0.205 H 318.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#8C22A6
RGBrgb(140, 34, 166)
HSLhsl(288, 66%, 39%)
HSVhsv(288, 80%, 65%)
CMYKcmyk(15.7%, 79.5%, 0%, 34.9%)
CIE-LABlab(36.88, 60.62, -48.31)
CIE-LCHlch(36.88, 77.52, 321.45°)
OKLaboklab(48.29% 0.154 -0.1359)
OKLCHoklch(48.29% 0.205 318.6)
XYZxyz(18.2692, 9.4736, 36.9353)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C22A6 #3CA622
analogous
#4A22A6 #8C22A6 #A6227E
triadic
#8C22A6 #A68C22 #22A68C
tetradic
#8C22A6 #A64A22 #3CA622 #227EA6
square
#8C22A6 #A64A22 #3CA622 #227EA6
split-complementary
#8C22A6 #7EA622 #22A64A
monochromatic
#360D40 #611873 #8C22A6 #B430D5 #C763DF

Accessibility & contrast

On white

7.25
#8C22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8C22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C22A6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C22A6#FFFFFF#000000##FFFFFF
##8C22A61.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#2A5AA3
Tritanopia (blue-blind)
#8B4064
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8c22a6;
/* rgb */ color: rgb(140, 34, 166);
/* oklch */ color: oklch(48.3% 0.205 318.6);
Tailwind
colors: {
  custom: {
    50: '#b26bc1',
    500: '#8c22a6',
    950: '#000000',
  },
}
SCSS
$custom: #8c22a6;
$custom-light: #b26bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c22a6",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 288.182,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48293,
    "c": 0.20536,
    "h": 318.6
  },
  "luminance": 0.09473
}

Semantic roles & 50–950 ramp

primary
#8C22A6
secondary
#73C45F
accent
#E93F60
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8C22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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