#D8317F

A color in the Red, Pink family

#d8317f is a color in the Red, Pink family: RGB(216, 49, 127), HSL(332°, 68%, 52%), CMYK(0%, 77%, 41%, 15%). Closest named color: mediumvioletred. Contrast is 4.5:1 on white and 4.67:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d8317f
RGBrgb(216 49 127)
RGB (legacy)rgb(216, 49, 127)
RGB %rgb(85% 19% 50%)
HSLhsl(332 68% 52%)
HSV / HSBhsv(332, 77%, 85%)
HWBhwb(332 19% 15%)
CMYKcmyk(0%, 77%, 41%, 15%)
CIELAB (D50)lab(50.41 67.53 -2.24)
LCHlch(50.41 67.57 358.1)
OKLaboklab(0.5957 0.2099 -0.0083)
OKLCHoklch(0.5957 0.2101 357.73)
Decimal14168447

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.50:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.67: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 69.8 / -31.9 · As background with white / black text: Lc -75.3 / 34.3

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