#8D17B4#8D17B4

#8D17B4 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.8% C 0.226 H 315.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8D17B4
RGBrgb(141, 23, 180)
HSLhsl(285, 77%, 40%)
HSVhsv(285, 87%, 71%)
CMYKcmyk(21.7%, 87.2%, 0%, 29.4%)
CIE-LABlab(37.06, 66.32, -56.37)
CIE-LCHlch(37.06, 87.04, 319.64°)
OKLaboklab(48.77% 0.1598 -0.1594)
OKLCHoklch(48.77% 0.226 315.1)
XYZxyz(19.5277, 9.5716, 43.9900)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D17B4 #3EB417
analogous
#3F17B4 #8D17B4 #B4178C
triadic
#8D17B4 #B48D17 #17B48D
tetradic
#8D17B4 #B43F17 #3EB417 #178CB4
square
#8D17B4 #B43F17 #3EB417 #178CB4
split-complementary
#8D17B4 #8CB417 #17B43F
monochromatic
#380947 #62107E #8D17B4 #B425E3 #C75BEA

Accessibility & contrast

On white

7.21
#8D17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8D17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D17B4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D17B4#FFFFFF#000000##FFFFFF
##8D17B41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#045AB1
Tritanopia (blue-blind)
#8A426B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d17b4;
/* rgb */ color: rgb(141, 23, 180);
/* oklch */ color: oklch(48.8% 0.226 315.1);
Tailwind
colors: {
  custom: {
    50: '#b368cb',
    500: '#8d17b4',
    950: '#000000',
  },
}
SCSS
$custom: #8d17b4;
$custom-light: #b368cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d17b4",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 285.096,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48769,
    "c": 0.2257,
    "h": 315.1
  },
  "luminance": 0.09571
}

Semantic roles & 50–950 ramp

primary
#8D17B4
secondary
#76CE59
accent
#F43464
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8D17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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