#8E22B4#8E22B4

#8E22B4 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.6% C 0.218 H 315.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8E22B4
RGBrgb(142, 34, 180)
HSLhsl(284, 68%, 42%)
HSVhsv(284, 81%, 71%)
CMYKcmyk(21.1%, 81.1%, 0%, 29.4%)
CIE-LABlab(38.18, 63.67, -54.54)
CIE-LCHlch(38.18, 83.84, 319.42°)
OKLaboklab(49.58% 0.154 -0.1541)
OKLCHoklch(49.58% 0.218 315)
XYZxyz(19.9642, 10.1909, 44.0866)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E22B4 #48B422
analogous
#4522B4 #8E22B4 #B42291
triadic
#8E22B4 #B48E22 #22B48E
tetradic
#8E22B4 #B44522 #48B422 #2291B4
square
#8E22B4 #B44522 #48B422 #2291B4
split-complementary
#8E22B4 #91B422 #22B445
monochromatic
#3D0F4D #651881 #8E22B4 #B03ADA #C56DE3

Accessibility & contrast

On white

6.91
#8E22B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8E22B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E22B4
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E22B4#FFFFFF#000000##FFFFFF
##8E22B41.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#185CB1
Tritanopia (blue-blind)
#8B466C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e22b4;
/* rgb */ color: rgb(142, 34, 180);
/* oklch */ color: oklch(49.6% 0.218 315.0);
Tailwind
colors: {
  custom: {
    50: '#b46ccb',
    500: '#8e22b4',
    950: '#000000',
  },
}
SCSS
$custom: #8e22b4;
$custom-light: #b46ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e22b4",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 180
  },
  "hsl": {
    "h": 284.384,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49583,
    "c": 0.21789,
    "h": 315
  },
  "luminance": 0.1019
}

Semantic roles & 50–950 ramp

primary
#8E22B4
secondary
#82CA68
accent
#EB3D6A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #8E22B4

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

Preview Lab → · Contrast checker → · Palette generator →

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