#511F4E

A color in the Purple, Crimson, Magenta family

#511f4e is a color in the Purple, Crimson, Magenta family: RGB(81, 31, 78), HSL(304°, 45%, 22%), CMYK(0%, 62%, 4%, 68%). Closest named color: indigo. Contrast is 12.68:1 on white and 1.66:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#511f4e
RGBrgb(81 31 78)
RGB (legacy)rgb(81, 31, 78)
RGB %rgb(32% 12% 31%)
HSLhsl(304 45% 22%)
HSV / HSBhsv(304, 62%, 32%)
HWBhwb(304 12% 68%)
CMYKcmyk(0%, 62%, 4%, 68%)
CIELAB (D50)lab(21.11 29 -18.02)
LCHlch(21.11 34.15 328.15)
OKLaboklab(0.3328 0.0861 -0.0499)
OKLCHoklch(0.3328 0.0995 329.9)
Decimal5316430

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 10.3
Closest web-safe color#663366
Hue304°
Saturation (HSL / HSV)45% / 62%
Lightness (HSL)22%
Brightness or Value (HSV)32%
Luminance (Rec.601 / Rec.709)20% / 18%
Relative luminance (WCAG)0.0328
Red / Green / Blue81 / 31 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.68:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.66: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.2 / 0 · As background with white / black text: Lc -101.7 / 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: #511f4e;
  --color-brand-oklch: oklch(33.28% 0.0995 329.9);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(81 31 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#511f4e] text-[#511f4e] border-[#511f4e]">