#5B4792

A color in the Violet family

#5b4792 is a color in the Violet family: RGB(91, 71, 146), HSL(256°, 35%, 43%), CMYK(38%, 51%, 0%, 43%). Closest named color: darkslateblue. Contrast is 7.61:1 on white and 2.76:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#5b4792
RGBrgb(91 71 146)
RGB (legacy)rgb(91, 71, 146)
RGB %rgb(36% 28% 57%)
HSLhsl(256 35% 43%)
HSV / HSBhsv(256, 51%, 57%)
HWBhwb(256 28% 43%)
CMYKcmyk(38%, 51%, 0%, 43%)
CIELAB (D50)lab(35.18 22.64 -39.08)
LCHlch(35.18 45.16 300.09)
OKLaboklab(0.4558 0.0473 -0.1092)
OKLCHoklch(0.4558 0.119 293.4)
Decimal5982098

Properties

Color ToneViolet
Closest named colordarkslateblue ΔE 4.5
Closest web-safe color#663399
Hue256°
Saturation (HSL / HSV)35% / 51%
Lightness (HSL)43%
Brightness or Value (HSV)57%
Luminance (Rec.601 / Rec.709)34% / 32%
Relative luminance (WCAG)0.0881
Red / Green / Blue91 / 71 / 146

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.61:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.76: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 86.2 / -15.8 · As background with white / black text: Lc -91 / 17.8

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: #5b4792;
  --color-brand-oklch: oklch(45.58% 0.119 293.4);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(91 71 146 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5b4792] text-[#5b4792] border-[#5b4792]">