#8C22B2#8C22B2

#8C22B2 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.2% C 0.216 H 314.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8C22B2
RGBrgb(140, 34, 178)
HSLhsl(284, 68%, 42%)
HSVhsv(284, 81%, 70%)
CMYKcmyk(21.3%, 80.9%, 0%, 30.2%)
CIE-LABlab(37.72, 62.93, -54.11)
CIE-LCHlch(37.72, 82.99, 319.31°)
OKLaboklab(49.15% 0.1519 -0.1529)
OKLCHoklch(49.15% 0.216 314.8)
XYZxyz(19.4218, 9.9346, 43.0053)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C22B2 #48B222
analogous
#4422B2 #8C22B2 #B22290
triadic
#8C22B2 #B28C22 #22B28C
tetradic
#8C22B2 #B24422 #48B222 #2290B2
square
#8C22B2 #B24422 #48B222 #2290B2
split-complementary
#8C22B2 #90B222 #22B244
monochromatic
#3B0E4B #64187F #8C22B2 #AF38D9 #C36CE3

Accessibility & contrast

On white

7.03
#8C22B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8C22B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C22B2
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C22B2#FFFFFF#000000##FFFFFF
##8C22B21.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#175BAF
Tritanopia (blue-blind)
#89456B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c22b2;
/* rgb */ color: rgb(140, 34, 178);
/* oklch */ color: oklch(49.2% 0.216 314.8);
Tailwind
colors: {
  custom: {
    50: '#b26bca',
    500: '#8c22b2',
    950: '#000000',
  },
}
SCSS
$custom: #8c22b2;
$custom-light: #b26bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c22b2",
  "rgb": {
    "r": 140,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 284.167,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49154,
    "c": 0.21553,
    "h": 314.8
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

primary
#8C22B2
secondary
#81C967
accent
#EB3D6B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8C22B2

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

Preview Lab → · Contrast checker → · Palette generator →

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