#8E22B3#8E22B3

#8E22B3 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.217 H 315.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8E22B3
RGBrgb(142, 34, 179)
HSLhsl(285, 68%, 42%)
HSVhsv(285, 81%, 70%)
CMYKcmyk(20.7%, 81%, 0%, 29.8%)
CIE-LABlab(38.11, 63.48, -54.07)
CIE-LCHlch(38.11, 83.38, 319.58°)
OKLaboklab(49.51% 0.1542 -0.1527)
OKLCHoklch(49.51% 0.217 315.3)
XYZxyz(19.8627, 10.1503, 43.5520)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E22B3 #47B322
analogous
#4622B3 #8E22B3 #B32290
triadic
#8E22B3 #B38E22 #22B38E
tetradic
#8E22B3 #B34622 #47B322 #2290B3
square
#8E22B3 #B34622 #47B322 #2290B3
split-complementary
#8E22B3 #90B322 #22B346
monochromatic
#3C0E4C #651880 #8E22B3 #B039D9 #C56CE3

Accessibility & contrast

On white

6.93
#8E22B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8E22B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E22B3
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E22B3#FFFFFF#000000##FFFFFF
##8E22B31.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#1A5CB0
Tritanopia (blue-blind)
#8B456C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e22b3;
/* rgb */ color: rgb(142, 34, 179);
/* oklch */ color: oklch(49.5% 0.217 315.3);
Tailwind
colors: {
  custom: {
    50: '#b46ccb',
    500: '#8e22b3',
    950: '#000000',
  },
}
SCSS
$custom: #8e22b3;
$custom-light: #b46ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e22b3",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 284.69,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4951,
    "c": 0.21703,
    "h": 315.3
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#8E22B3
secondary
#80C968
accent
#EB3D69
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8E22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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