#A1237E

A color in the Purple, Crimson, Magenta family

#a1237e is a color in the Purple, Crimson, Magenta family: RGB(161, 35, 126), HSL(317°, 64%, 38%), CMYK(0%, 78%, 22%, 37%). Closest named color: darkmagenta. Contrast is 6.87:1 on white and 3.06:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#a1237e
RGBrgb(161 35 126)
RGB (legacy)rgb(161, 35, 126)
RGB %rgb(63% 14% 49%)
HSLhsl(317 64% 38%)
HSV / HSBhsv(317, 78%, 63%)
HWBhwb(317 14% 37%)
CMYKcmyk(0%, 78%, 22%, 37%)
CIELAB (D50)lab(38.55 56.71 -20.64)
LCHlch(38.55 60.34 340)
OKLaboklab(0.4931 0.1756 -0.0573)
OKLCHoklch(0.4931 0.1847 341.92)
Decimal10560382

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 6.8
Closest web-safe color#993366
Hue317°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)38%
Brightness or Value (HSV)63%
Luminance (Rec.601 / Rec.709)33% / 27%
Relative luminance (WCAG)0.1029
Red / Green / Blue161 / 35 / 126

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 82.4 / -19.5 · As background with white / black text: Lc -87.5 / 21.6

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: #a1237e;
  --color-brand-oklch: oklch(49.31% 0.1847 341.92);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(161 35 126 / 50%); }
/* Tailwind CSS */
<div class="bg-[#a1237e] text-[#a1237e] border-[#a1237e]">