#D1237D

A color in the Purple, Crimson, Magenta family

#d1237d is a color in the Purple, Crimson, Magenta family: RGB(209, 35, 125), HSL(329°, 71%, 48%), CMYK(0%, 83%, 40%, 18%). Closest named color: mediumvioletred. Contrast is 4.94:1 on white and 4.25:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d1237d
RGBrgb(209 35 125)
RGB (legacy)rgb(209, 35, 125)
RGB %rgb(82% 14% 49%)
HSLhsl(329 71% 48%)
HSV / HSBhsv(329, 83%, 82%)
HWBhwb(329 14% 18%)
CMYKcmyk(0%, 83%, 40%, 18%)
CIELAB (D50)lab(47.8 68.95 -5.03)
LCHlch(47.8 69.13 355.83)
OKLaboklab(0.5741 0.2153 -0.0157)
OKLCHoklch(0.5741 0.2158 355.83)
Decimal13706109

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.94:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.25: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.5 / -29.2 · As background with white / black text: Lc -77.9 / 31.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: #d1237d;
  --color-brand-oklch: oklch(57.41% 0.2158 355.83);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(209 35 125 / 50%); }
/* Tailwind CSS */
<div class="bg-[#d1237d] text-[#d1237d] border-[#d1237d]">