#C021E4

A color in the Purple, Crimson, Magenta family

#c021e4 is a color in the Purple, Crimson, Magenta family: RGB(192, 33, 228), HSL(289°, 78%, 51%), CMYK(16%, 86%, 0%, 11%). Closest named color: mediumorchid. Contrast is 4.59:1 on white and 4.58:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#c021e4
RGBrgb(192 33 228)
RGB (legacy)rgb(192, 33, 228)
RGB %rgb(75% 13% 89%)
HSLhsl(289 78% 51%)
HSV / HSBhsv(289, 86%, 89%)
HWBhwb(289 13% 11%)
CMYKcmyk(16%, 86%, 0%, 11%)
CIELAB (D50)lab(48.91 75.76 -64.14)
LCHlch(48.91 99.26 319.75)
OKLaboklab(0.6002 0.2051 -0.1799)
OKLCHoklch(0.6002 0.2728 318.74)
Decimal12591588

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumorchid ΔE 7.5
Closest web-safe color#cc33cc
Hue289°
Saturation (HSL / HSV)78% / 86%
Lightness (HSL)51%
Brightness or Value (HSV)89%
Luminance (Rec.601 / Rec.709)40% / 32%
Relative luminance (WCAG)0.179
Red / Green / Blue192 / 33 / 228

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.59:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.58: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 70 / -31.6 · As background with white / black text: Lc -75.5 / 34

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