#C400A0

A color in the Purple, Crimson, Magenta family

#c400a0 is a color in the Purple, Crimson, Magenta family: RGB(196, 0, 160), HSL(311°, 100%, 38%), CMYK(0%, 100%, 18%, 23%). Closest named color: mediumvioletred. Contrast is 5.45:1 on white and 3.85:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#c400a0
RGBrgb(196 0 160)
RGB (legacy)rgb(196, 0, 160)
RGB %rgb(77% 0% 63%)
HSLhsl(311 100% 38%)
HSV / HSBhsv(311, 100%, 77%)
HWBhwb(311 0% 23%)
CMYKcmyk(0%, 100%, 18%, 23%)
CIELAB (D50)lab(44.82 73.23 -31.01)
LCHlch(44.82 79.52 337.05)
OKLaboklab(0.5552 0.2263 -0.0863)
OKLCHoklch(0.5552 0.2422 339.11)
Decimal12845216

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 4.7
Closest web-safe color#cc0099
Hue311°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)38%
Brightness or Value (HSV)77%
Luminance (Rec.601 / Rec.709)30% / 21%
Relative luminance (WCAG)0.1427
Red / Green / Blue196 / 0 / 160

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.45:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.85: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.6 / -27.1 · As background with white / black text: Lc -80 / 29.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: #c400a0;
  --color-brand-oklch: oklch(55.52% 0.2422 339.11);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(196 0 160 / 50%); }
/* Tailwind CSS */
<div class="bg-[#c400a0] text-[#c400a0] border-[#c400a0]">