#8E22B5#8E22B5

#8E22B5 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.7% C 0.219 H 314.7°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8E22B5
RGBrgb(142, 34, 181)
HSLhsl(284, 68%, 42%)
HSVhsv(284, 81%, 71%)
CMYKcmyk(21.5%, 81.2%, 0%, 29%)
CIE-LABlab(38.26, 63.86, -55.02)
CIE-LCHlch(38.26, 84.29, 319.26°)
OKLaboklab(49.66% 0.1538 -0.1555)
OKLCHoklch(49.66% 0.219 314.7)
XYZxyz(20.0664, 10.2318, 44.6250)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E22B5 #49B522
analogous
#4522B5 #8E22B5 #B52292
triadic
#8E22B5 #B58E22 #22B58E
tetradic
#8E22B5 #B54522 #49B522 #2292B5
square
#8E22B5 #B54522 #49B522 #2292B5
split-complementary
#8E22B5 #92B522 #22B545
monochromatic
#3D0F4E #661881 #8E22B5 #B03ADA #C46EE4

Accessibility & contrast

On white

6.89
#8E22B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8E22B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E22B5
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E22B5#FFFFFF#000000##FFFFFF
##8E22B51.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#165DB2
Tritanopia (blue-blind)
#8A466D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e22b5;
/* rgb */ color: rgb(142, 34, 181);
/* oklch */ color: oklch(49.7% 0.219 314.7);
Tailwind
colors: {
  custom: {
    50: '#b46ccc',
    500: '#8e22b5',
    950: '#000000',
  },
}
SCSS
$custom: #8e22b5;
$custom-light: #b46ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e22b5",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 284.082,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49656,
    "c": 0.21873,
    "h": 314.7
  },
  "luminance": 0.10231
}

Semantic roles & 50–950 ramp

primary
#8E22B5
secondary
#83CA69
accent
#EB3D6B
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8E22B5

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

Preview Lab → · Contrast checker → · Palette generator →

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