#C021A3

A color in the Purple, Crimson, Magenta family

#c021a3 is a color in the Purple, Crimson, Magenta family: RGB(192, 33, 163), HSL(311°, 71%, 44%), CMYK(0%, 83%, 15%, 25%). Closest named color: mediumvioletred. Contrast is 5.27:1 on white and 3.99:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#c021a3
RGBrgb(192 33 163)
RGB (legacy)rgb(192, 33, 163)
RGB %rgb(75% 13% 64%)
HSLhsl(311 71% 44%)
HSV / HSBhsv(311, 83%, 75%)
HWBhwb(311 13% 25%)
CMYKcmyk(0%, 83%, 15%, 25%)
CIELAB (D50)lab(45.69 68.37 -31.52)
LCHlch(45.69 75.29 335.25)
OKLaboklab(0.561 0.2096 -0.0877)
OKLCHoklch(0.561 0.2272 337.3)
Decimal12591523

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 4.9
Closest web-safe color#cc3399
Hue311°
Saturation (HSL / HSV)71% / 83%
Lightness (HSL)44%
Brightness or Value (HSV)75%
Luminance (Rec.601 / Rec.709)37% / 30%
Relative luminance (WCAG)0.1494
Red / Green / Blue192 / 33 / 163

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.27:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.99: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.5 / -27.2 · As background with white / black text: Lc -79.9 / 29.6

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: #c021a3;
  --color-brand-oklch: oklch(56.1% 0.2272 337.3);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(192 33 163 / 50%); }
/* Tailwind CSS */
<div class="bg-[#c021a3] text-[#c021a3] border-[#c021a3]">