#5A1237

A color in the Purple, Crimson, Magenta family

#5a1237 is a color in the Purple, Crimson, Magenta family: RGB(90, 18, 55), HSL(329°, 67%, 21%), CMYK(0%, 80%, 39%, 65%). Closest named color: maroon. Contrast is 13.32:1 on white and 1.58:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#5a1237
RGBrgb(90 18 55)
RGB (legacy)rgb(90, 18, 55)
RGB %rgb(35% 7% 22%)
HSLhsl(329 67% 21%)
HSV / HSBhsv(329, 80%, 35%)
HWBhwb(329 7% 65%)
CMYKcmyk(0%, 80%, 39%, 65%)
CIELAB (D50)lab(19.8 35.04 -4)
LCHlch(19.8 35.27 353.48)
OKLaboklab(0.3211 0.1091 -0.0117)
OKLCHoklch(0.3211 0.1097 353.86)
Decimal5902903

Properties

Color TonePurple, Crimson, Magenta
Closest named colormaroon ΔE 10.7
Closest web-safe color#660033
Hue329°
Saturation (HSL / HSV)67% / 80%
Lightness (HSL)21%
Brightness or Value (HSV)35%
Luminance (Rec.601 / Rec.709)17% / 14%
Relative luminance (WCAG)0.0288
Red / Green / Blue90 / 18 / 55

WCAG 2.2 Contrast Ratio

On White (#ffffff)
13.32:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.58: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.8 / 0 · As background with white / black text: Lc -102.2 / 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: #5a1237;
  --color-brand-oklch: oklch(32.11% 0.1097 353.86);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(90 18 55 / 50%); }
/* Tailwind CSS */
<div class="bg-[#5a1237] text-[#5a1237] border-[#5a1237]">