#8C22B5#8C22B5

#8C22B5 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.4% C 0.218 H 313.9°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8C22B5
RGBrgb(140, 34, 181)
HSLhsl(283, 68%, 42%)
HSVhsv(283, 81%, 71%)
CMYKcmyk(22.7%, 81.2%, 0%, 29%)
CIE-LABlab(37.94, 63.52, -55.54)
CIE-LCHlch(37.94, 84.37, 318.83°)
OKLaboklab(49.38% 0.1513 -0.1571)
OKLCHoklch(49.38% 0.218 313.9)
XYZxyz(19.7263, 10.0564, 44.6091)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C22B5 #4BB522
analogous
#4222B5 #8C22B5 #B52295
triadic
#8C22B5 #B58C22 #22B58C
tetradic
#8C22B5 #B54222 #4BB522 #2295B5
square
#8C22B5 #B54222 #4BB522 #2295B5
split-complementary
#8C22B5 #95B522 #22B542
monochromatic
#3C0F4E #641881 #8C22B5 #AD3ADA #C36EE4

Accessibility & contrast

On white

6.97
#8C22B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8C22B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C22B5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C22B5#FFFFFF#000000##FFFFFF
##8C22B51.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0F5CB2
Tritanopia (blue-blind)
#88476D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c22b5;
/* rgb */ color: rgb(140, 34, 181);
/* oklch */ color: oklch(49.4% 0.218 313.9);
Tailwind
colors: {
  custom: {
    50: '#b26bcc',
    500: '#8c22b5',
    950: '#000000',
  },
}
SCSS
$custom: #8c22b5;
$custom-light: #b26bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c22b5",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 283.265,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49376,
    "c": 0.2181,
    "h": 313.9
  },
  "luminance": 0.10056
}

Semantic roles & 50–950 ramp

primary
#8C22B5
secondary
#84CA69
accent
#EB3D6D
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8C22B5

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

Preview Lab → · Contrast checker → · Palette generator →

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