#8B22B1#8B22B1

#8B22B1 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.9% C 0.214 H 314.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8B22B1
RGBrgb(139, 34, 177)
HSLhsl(284, 68%, 41%)
HSVhsv(284, 81%, 69%)
CMYKcmyk(21.5%, 80.8%, 0%, 30.6%)
CIE-LABlab(37.50, 62.56, -53.90)
CIE-LCHlch(37.50, 82.57, 319.25°)
OKLaboklab(48.94% 0.1508 -0.1523)
OKLCHoklch(48.94% 0.214 314.7)
XYZxyz(19.1540, 9.8081, 42.4706)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B22B1 #48B122
analogous
#4422B1 #8B22B1 #B12290
triadic
#8B22B1 #B18B22 #22B18B
tetradic
#8B22B1 #B14422 #48B122 #2290B1
square
#8B22B1 #B14422 #48B122 #2290B1
split-complementary
#8B22B1 #90B122 #22B144
monochromatic
#3A0E4A #63187E #8B22B1 #AE38D9 #C36BE3

Accessibility & contrast

On white

7.09
#8B22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8B22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B22B1
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B22B1#FFFFFF#000000##FFFFFF
##8B22B11.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#175BAE
Tritanopia (blue-blind)
#88456B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b22b1;
/* rgb */ color: rgb(139, 34, 177);
/* oklch */ color: oklch(48.9% 0.214 314.7);
Tailwind
colors: {
  custom: {
    50: '#b26bc9',
    500: '#8b22b1',
    950: '#000000',
  },
}
SCSS
$custom: #8b22b1;
$custom-light: #b26bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b22b1",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 284.056,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48939,
    "c": 0.21435,
    "h": 314.7
  },
  "luminance": 0.09807
}

Semantic roles & 50–950 ramp

primary
#8B22B1
secondary
#80C966
accent
#EB3D6B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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