#D1237A

A color in the Purple, Crimson, Magenta family

#d1237a is a color in the Purple, Crimson, Magenta family: RGB(209, 35, 122), HSL(330°, 71%, 48%), CMYK(0%, 83%, 42%, 18%). Closest named color: mediumvioletred. Contrast is 4.96:1 on white and 4.23:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d1237a
RGBrgb(209 35 122)
RGB (legacy)rgb(209, 35, 122)
RGB %rgb(82% 14% 48%)
HSLhsl(330 71% 48%)
HSV / HSBhsv(330, 83%, 82%)
HWBhwb(330 14% 18%)
CMYKcmyk(0%, 83%, 42%, 18%)
CIELAB (D50)lab(47.71 68.75 -3.32)
LCHlch(47.71 68.83 357.24)
OKLaboklab(0.5731 0.2144 -0.0112)
OKLCHoklch(0.5731 0.2147 357)
Decimal13706106

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 3.5
Closest web-safe color#cc3366
Hue330°
Saturation (HSL / HSV)71% / 83%
Lightness (HSL)48%
Brightness or Value (HSV)82%
Luminance (Rec.601 / Rec.709)38% / 31%
Relative luminance (WCAG)0.1616
Red / Green / Blue209 / 35 / 122

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.96:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.23: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 72.6 / -29.1 · As background with white / black text: Lc -78 / 31.5

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: #d1237a;
  --color-brand-oklch: oklch(57.31% 0.2147 357);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(209 35 122 / 50%); }
/* Tailwind CSS */
<div class="bg-[#d1237a] text-[#d1237a] border-[#d1237a]">