#8317B5

A color in the Purple, Crimson, Magenta family

#8317b5 is a color in the Purple, Crimson, Magenta family: RGB(131, 23, 181), HSL(281°, 77%, 40%), CMYK(28%, 87%, 0%, 29%). Closest named color: darkviolet. Contrast is 7.62:1 on white and 2.75:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#8317b5
RGBrgb(131 23 181)
RGB (legacy)rgb(131, 23, 181)
RGB %rgb(51% 9% 71%)
HSLhsl(281 77% 40%)
HSV / HSBhsv(281, 87%, 71%)
HWBhwb(281 9% 29%)
CMYKcmyk(28%, 87%, 0%, 29%)
CIELAB (D50)lab(34.93 59.93 -60.13)
LCHlch(34.93 84.89 314.91)
OKLaboklab(0.4743 0.1465 -0.169)
OKLCHoklch(0.4743 0.2236 310.93)
Decimal8591285

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkviolet ΔE 5.5
Closest web-safe color#9900cc
Hue281°
Saturation (HSL / HSV)77% / 87%
Lightness (HSL)40%
Brightness or Value (HSV)71%
Luminance (Rec.601 / Rec.709)29% / 22%
Relative luminance (WCAG)0.0877
Red / Green / Blue131 / 23 / 181

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.62:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.75:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 84.9 / -17.1 · As background with white / black text: Lc -89.8 / 19.1

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #8317b5;
  --color-brand-oklch: oklch(47.43% 0.2236 310.93);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(131 23 181 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8317b5] text-[#8317b5] border-[#8317b5]">