#8B22AE#8B22AE

#8B22AE is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.7% C 0.212 H 315.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8B22AE
RGBrgb(139, 34, 174)
HSLhsl(285, 67%, 41%)
HSVhsv(285, 80%, 68%)
CMYKcmyk(20.1%, 80.5%, 0%, 31.8%)
CIE-LABlab(37.28, 61.97, -52.46)
CIE-LCHlch(37.28, 81.19, 319.75°)
OKLaboklab(48.72% 0.1514 -0.1481)
OKLCHoklch(48.72% 0.212 315.6)
XYZxyz(18.8582, 9.6898, 40.9131)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22AE #45AE22
analogous
#4522AE #8B22AE #AE228B
triadic
#8B22AE #AE8B22 #22AE8B
tetradic
#8B22AE #AE4522 #45AE22 #228BAE
square
#8B22AE #AE4522 #45AE22 #228BAE
split-complementary
#8B22AE #8BAE22 #22AE45
monochromatic
#390E48 #62187B #8B22AE #AF36D8 #C369E2

Accessibility & contrast

On white

7.15
#8B22AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8B22AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22AE
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22AE#FFFFFF#000000##FFFFFF
##8B22AE1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#1D5AAB
Tritanopia (blue-blind)
#884469
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b22ae;
/* rgb */ color: rgb(139, 34, 174);
/* oklch */ color: oklch(48.7% 0.212 315.6);
Tailwind
colors: {
  custom: {
    50: '#b16bc7',
    500: '#8b22ae',
    950: '#000000',
  },
}
SCSS
$custom: #8b22ae;
$custom-light: #b16bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22ae",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 174
  },
  "hsl": {
    "h": 285,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.21178,
    "h": 315.6
  },
  "luminance": 0.09689
}

Semantic roles & 50–950 ramp

primary
#8B22AE
secondary
#7DC764
accent
#EA3E69
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22AE

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

Preview Lab → · Contrast checker → · Palette generator →

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