#D400A9

A color in the Purple, Crimson, Magenta family

#d400a9 is a color in the Purple, Crimson, Magenta family: RGB(212, 0, 169), HSL(312°, 100%, 42%), CMYK(0%, 100%, 20%, 17%). Closest named color: mediumvioletred. Contrast is 4.8:1 on white and 4.37:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d400a9
RGBrgb(212 0 169)
RGB (legacy)rgb(212, 0, 169)
RGB %rgb(83% 0% 66%)
HSLhsl(312 100% 42%)
HSV / HSBhsv(312, 100%, 83%)
HWBhwb(312 0% 17%)
CMYKcmyk(0%, 100%, 20%, 17%)
CIELAB (D50)lab(48.33 77.29 -30.64)
LCHlch(48.33 83.14 338.38)
OKLaboklab(0.5867 0.2397 -0.0853)
OKLCHoklch(0.5867 0.2544 340.41)
Decimal13893801

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 6
Closest web-safe color#cc0099
Hue312°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)42%
Brightness or Value (HSV)83%
Luminance (Rec.601 / Rec.709)32% / 22%
Relative luminance (WCAG)0.1686
Red / Green / Blue212 / 0 / 169

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.80:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.37: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 70.7 / -31 · As background with white / black text: Lc -76.2 / 33.4

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: #d400a9;
  --color-brand-oklch: oklch(58.67% 0.2544 340.41);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(212 0 169 / 50%); }
/* Tailwind CSS */
<div class="bg-[#d400a9] text-[#d400a9] border-[#d400a9]">