#8D22B1#8D22B1

#8D22B1 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.215 H 315.5°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8D22B1
RGBrgb(141, 34, 177)
HSLhsl(285, 68%, 41%)
HSVhsv(285, 81%, 69%)
CMYKcmyk(20.3%, 80.8%, 0%, 30.6%)
CIE-LABlab(37.81, 62.91, -53.37)
CIE-LCHlch(37.81, 82.50, 319.69°)
OKLaboklab(49.22% 0.1533 -0.1507)
OKLCHoklch(49.22% 0.215 315.5)
XYZxyz(19.4911, 9.9819, 42.4864)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D22B1 #46B122
analogous
#4622B1 #8D22B1 #B1228E
triadic
#8D22B1 #B18D22 #22B18D
tetradic
#8D22B1 #B14622 #46B122 #228EB1
square
#8D22B1 #B14622 #46B122 #228EB1
split-complementary
#8D22B1 #8EB122 #22B146
monochromatic
#3B0E4A #64187E #8D22B1 #B038D9 #C46BE3

Accessibility & contrast

On white

7.01
#8D22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8D22B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D22B1
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D22B1#FFFFFF#000000##FFFFFF
##8D22B11.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#1C5CAE
Tritanopia (blue-blind)
#8A456B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d22b1;
/* rgb */ color: rgb(141, 34, 177);
/* oklch */ color: oklch(49.2% 0.215 315.5);
Tailwind
colors: {
  custom: {
    50: '#b36bc9',
    500: '#8d22b1',
    950: '#000000',
  },
}
SCSS
$custom: #8d22b1;
$custom-light: #b36bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d22b1",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 284.895,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49222,
    "c": 0.215,
    "h": 315.5
  },
  "luminance": 0.09981
}

Semantic roles & 50–950 ramp

primary
#8D22B1
secondary
#7FC966
accent
#EB3D69
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120813
muted
#817A82

Preview Lab

Preview with #8D22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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