#8D22B2#8D22B2

#8D22B2 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.3% C 0.216 H 315.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#8D22B2
RGBrgb(141, 34, 178)
HSLhsl(285, 68%, 42%)
HSVhsv(285, 81%, 70%)
CMYKcmyk(20.8%, 80.9%, 0%, 30.2%)
CIE-LABlab(37.88, 63.11, -53.85)
CIE-LCHlch(37.88, 82.96, 319.52°)
OKLaboklab(49.3% 0.1532 -0.1521)
OKLCHoklch(49.3% 0.216 315.2)
XYZxyz(19.5911, 10.0219, 43.0133)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D22B2 #47B222
analogous
#4522B2 #8D22B2 #B2228F
triadic
#8D22B2 #B28D22 #22B28D
tetradic
#8D22B2 #B24522 #47B222 #228FB2
square
#8D22B2 #B24522 #47B222 #228FB2
split-complementary
#8D22B2 #8FB222 #22B245
monochromatic
#3C0E4B #64187F #8D22B2 #B038D9 #C46CE3

Accessibility & contrast

On white

6.99
#8D22B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D22B2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D22B2#FFFFFF#000000##FFFFFF
##8D22B21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d22b2;
/* rgb */ color: rgb(141, 34, 178);
/* oklch */ color: oklch(49.3% 0.216 315.2);
Tailwind
colors: {
  custom: {
    50: '#b36bca',
    500: '#8d22b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d22b2;
$custom-light: #b36bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d22b2",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 284.583,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49295,
    "c": 0.21586,
    "h": 315.2
  },
  "luminance": 0.10021
}

Semantic roles & 50–950 ramp

primary
#8D22B2
secondary
#80C967
accent
#EB3D6A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120813
muted
#817A82

Preview Lab

Preview with #8D22B2

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

Preview Lab → · Contrast checker → · Palette generator →

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