#D8317C

A color in the Red, Pink family

#d8317c is a color in the Red, Pink family: RGB(216, 49, 124), HSL(333°, 68%, 52%), CMYK(0%, 77%, 43%, 15%). Closest named color: mediumvioletred. Contrast is 4.52:1 on white and 4.65:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d8317c
RGBrgb(216 49 124)
RGB (legacy)rgb(216, 49, 124)
RGB %rgb(85% 19% 49%)
HSLhsl(333 68% 52%)
HSV / HSBhsv(333, 77%, 85%)
HWBhwb(333 19% 15%)
CMYKcmyk(0%, 77%, 43%, 15%)
CIELAB (D50)lab(50.34 67.34 -0.53)
LCHlch(50.34 67.34 359.55)
OKLaboklab(0.5947 0.209 -0.004)
OKLCHoklch(0.5947 0.209 358.92)
Decimal14168444

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.52:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.65: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.9 / -31.8 · As background with white / black text: Lc -75.4 / 34.2

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