#D8317A

A color in the Red, Pink family

#d8317a is a color in the Red, Pink family: RGB(216, 49, 122), HSL(334°, 68%, 52%), CMYK(0%, 77%, 44%, 15%). Closest named color: mediumvioletred. Contrast is 4.53:1 on white and 4.64:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d8317a
RGBrgb(216 49 122)
RGB (legacy)rgb(216, 49, 122)
RGB %rgb(85% 19% 48%)
HSLhsl(334 68% 52%)
HSV / HSBhsv(334, 77%, 85%)
HWBhwb(334 19% 15%)
CMYKcmyk(0%, 77%, 44%, 15%)
CIELAB (D50)lab(50.29 67.21 0.61)
LCHlch(50.29 67.21 0.52)
OKLaboklab(0.5941 0.2084 -0.001)
OKLCHoklch(0.5941 0.2084 359.72)
Decimal14168442

Properties

Color ToneRed, Pink
Closest named colormediumvioletred ΔE 5.7
Closest web-safe color#cc3366
Hue334°
Saturation (HSL / HSV)68% / 77%
Lightness (HSL)52%
Brightness or Value (HSV)85%
Luminance (Rec.601 / Rec.709)42% / 35%
Relative luminance (WCAG)0.182
Red / Green / Blue216 / 49 / 122

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 70 / -31.7 · As background with white / black text: Lc -75.4 / 34.1

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: #d8317a;
  --color-brand-oklch: oklch(59.41% 0.2084 359.72);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(216 49 122 / 50%); }
/* Tailwind CSS */
<div class="bg-[#d8317a] text-[#d8317a] border-[#d8317a]">