#8B22A6#8B22A6

#8B22A6 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.1% C 0.205 H 318.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8B22A6
RGBrgb(139, 34, 166)
HSLhsl(288, 66%, 39%)
HSVhsv(288, 80%, 65%)
CMYKcmyk(16.3%, 79.5%, 0%, 34.9%)
CIE-LABlab(36.72, 60.43, -48.58)
CIE-LCHlch(36.72, 77.54, 321.21°)
OKLaboklab(48.15% 0.1528 -0.1367)
OKLCHoklch(48.15% 0.205 318.2)
XYZxyz(18.1015, 9.3870, 36.9274)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22A6 #3DA622
analogous
#4922A6 #8B22A6 #A6227F
triadic
#8B22A6 #A68B22 #22A68B
tetradic
#8B22A6 #A64922 #3DA622 #227FA6
square
#8B22A6 #A64922 #3DA622 #227FA6
split-complementary
#8B22A6 #7FA622 #22A649
monochromatic
#360D40 #601873 #8B22A6 #B330D5 #C663DF

Accessibility & contrast

On white

7.30
#8B22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8B22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22A6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22A6#FFFFFF#000000##FFFFFF
##8B22A61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#285AA3
Tritanopia (blue-blind)
#8A4064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b22a6;
/* rgb */ color: rgb(139, 34, 166);
/* oklch */ color: oklch(48.1% 0.205 318.2);
Tailwind
colors: {
  custom: {
    50: '#b16ac1',
    500: '#8b22a6',
    950: '#000000',
  },
}
SCSS
$custom: #8b22a6;
$custom-light: #b16ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22a6",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 287.727,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48148,
    "c": 0.20499,
    "h": 318.2
  },
  "luminance": 0.09386
}

Semantic roles & 50–950 ramp

primary
#8B22A6
secondary
#74C45F
accent
#E93F62
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8B22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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