#8B17B4#8B17B4

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

Color values

HEX#8B17B4
RGBrgb(139, 23, 180)
HSLhsl(284, 77%, 40%)
HSVhsv(284, 87%, 71%)
CMYKcmyk(22.8%, 87.2%, 0%, 29.4%)
CIE-LABlab(36.74, 66.01, -56.91)
CIE-LCHlch(36.74, 87.15, 319.23°)
OKLaboklab(48.48% 0.1572 -0.1611)
OKLCHoklch(48.48% 0.225 314.3)
XYZxyz(19.1907, 9.3977, 43.9742)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B17B4 #40B417
analogous
#3C17B4 #8B17B4 #B4178F
triadic
#8B17B4 #B48B17 #17B48B
tetradic
#8B17B4 #B43C17 #40B417 #178FB4
square
#8B17B4 #B43C17 #40B417 #178FB4
split-complementary
#8B17B4 #8FB417 #17B43C
monochromatic
#370947 #61107E #8B17B4 #B225E3 #C55BEA

Accessibility & contrast

On white

7.29
#8B17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B17B4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B17B4#FFFFFF#000000##FFFFFF
##8B17B41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b17b4;
/* rgb */ color: rgb(139, 23, 180);
/* oklch */ color: oklch(48.5% 0.225 314.3);
Tailwind
colors: {
  custom: {
    50: '#b268cb',
    500: '#8b17b4',
    950: '#000000',
  },
}
SCSS
$custom: #8b17b4;
$custom-light: #b268cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b17b4",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 284.331,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48481,
    "c": 0.22509,
    "h": 314.3
  },
  "luminance": 0.09397
}

Semantic roles & 50–950 ramp

primary
#8B17B4
secondary
#78CE59
accent
#F43466
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8B17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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