#C7287C

A color in the Purple, Crimson, Magenta family

#c7287c is a color in the Purple, Crimson, Magenta family: RGB(199, 40, 124), HSL(328°, 67%, 47%), CMYK(0%, 80%, 38%, 22%). Closest named color: mediumvioletred. Contrast is 5.22:1 on white and 4.02:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#c7287c
RGBrgb(199 40 124)
RGB (legacy)rgb(199, 40, 124)
RGB %rgb(78% 16% 49%)
HSLhsl(328 67% 47%)
HSV / HSBhsv(328, 80%, 78%)
HWBhwb(328 16% 22%)
CMYKcmyk(0%, 80%, 38%, 22%)
CIELAB (D50)lab(46.24 65.17 -6.96)
LCHlch(46.24 65.54 353.9)
OKLaboklab(0.5598 0.2034 -0.0206)
OKLCHoklch(0.5598 0.2044 354.22)
Decimal13052028

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 2.5
Closest web-safe color#cc3366
Hue328°
Saturation (HSL / HSV)67% / 80%
Lightness (HSL)47%
Brightness or Value (HSV)78%
Luminance (Rec.601 / Rec.709)38% / 31%
Relative luminance (WCAG)0.1511
Red / Green / Blue199 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.22:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.02: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 74.4 / -27.3 · As background with white / black text: Lc -79.8 / 29.7

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: #c7287c;
  --color-brand-oklch: oklch(55.98% 0.2044 354.22);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(199 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#c7287c] text-[#c7287c] border-[#c7287c]">