#8B16B4#8B16B4

#8B16B4 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.4% C 0.226 H 314.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8B16B4
RGBrgb(139, 22, 180)
HSLhsl(284, 78%, 40%)
HSVhsv(284, 88%, 71%)
CMYKcmyk(22.8%, 87.8%, 0%, 29.4%)
CIE-LABlab(36.67, 66.22, -57.02)
CIE-LCHlch(36.67, 87.39, 319.27°)
OKLaboklab(48.43% 0.1578 -0.1614)
OKLCHoklch(48.43% 0.226 314.3)
XYZxyz(19.1712, 9.3588, 43.9677)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B16B4 #3FB416
analogous
#3C16B4 #8B16B4 #B4168E
triadic
#8B16B4 #B48B16 #16B48B
tetradic
#8B16B4 #B43C16 #3FB416 #168EB4
square
#8B16B4 #B43C16 #3FB416 #168EB4
split-complementary
#8B16B4 #8EB416 #16B43C
monochromatic
#370947 #610F7D #8B16B4 #B223E4 #C55AEB

Accessibility & contrast

On white

7.31
#8B16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8B16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B16B4
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B16B4#FFFFFF#000000##FFFFFF
##8B16B41.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#87426A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b16b4;
/* rgb */ color: rgb(139, 22, 180);
/* oklch */ color: oklch(48.4% 0.226 314.3);
Tailwind
colors: {
  custom: {
    50: '#b267cb',
    500: '#8b16b4',
    950: '#000000',
  },
}
SCSS
$custom: #8b16b4;
$custom-light: #b267cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b16b4",
  "rgb": {
    "r": 139,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 284.43,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48431,
    "c": 0.22571,
    "h": 314.3
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#8B16B4
secondary
#76CE58
accent
#F53365
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8B16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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