#5B104F

A color in the Purple, Crimson, Magenta family

#5b104f is a color in the Purple, Crimson, Magenta family: RGB(91, 16, 79), HSL(310°, 70%, 21%), CMYK(0%, 82%, 13%, 64%). Closest named color: indigo. Contrast is 12.87:1 on white and 1.63:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#5b104f
RGBrgb(91 16 79)
RGB (legacy)rgb(91, 16, 79)
RGB %rgb(36% 6% 31%)
HSLhsl(310 70% 21%)
HSV / HSBhsv(310, 82%, 36%)
HWBhwb(310 6% 64%)
CMYKcmyk(0%, 82%, 13%, 64%)
CIELAB (D50)lab(20.72 38.51 -19.13)
LCHlch(20.72 43 333.59)
OKLaboklab(0.3332 0.1172 -0.0531)
OKLCHoklch(0.3332 0.1287 335.61)
Decimal5967951

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 10.2
Closest web-safe color#660066
Hue310°
Saturation (HSL / HSV)70% / 82%
Lightness (HSL)21%
Brightness or Value (HSV)36%
Luminance (Rec.601 / Rec.709)18% / 14%
Relative luminance (WCAG)0.0316
Red / Green / Blue91 / 16 / 79

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.87:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.63: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 98 / 0 · As background with white / black text: Lc -101.4 / 0

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: #5b104f;
  --color-brand-oklch: oklch(33.32% 0.1287 335.61);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(91 16 79 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5b104f] text-[#5b104f] border-[#5b104f]">