#CA2E8A

A color in the Purple, Crimson, Magenta family

#ca2e8a is a color in the Purple, Crimson, Magenta family: RGB(202, 46, 138), HSL(325°, 63%, 49%), CMYK(0%, 77%, 32%, 21%). Closest named color: mediumvioletred. Contrast is 4.92:1 on white and 4.27:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ca2e8a
RGBrgb(202 46 138)
RGB (legacy)rgb(202, 46, 138)
RGB %rgb(79% 18% 54%)
HSLhsl(325 63% 49%)
HSV / HSBhsv(325, 77%, 79%)
HWBhwb(325 18% 21%)
CMYKcmyk(0%, 77%, 32%, 21%)
CIELAB (D50)lab(47.8 65.44 -13.09)
LCHlch(47.8 66.74 348.69)
OKLaboklab(0.5743 0.2042 -0.0369)
OKLCHoklch(0.5743 0.2075 349.77)
Decimal13250186

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 2.5
Closest web-safe color#cc3399
Hue325°
Saturation (HSL / HSV)63% / 77%
Lightness (HSL)49%
Brightness or Value (HSV)79%
Luminance (Rec.601 / Rec.709)40% / 34%
Relative luminance (WCAG)0.1635
Red / Green / Blue202 / 46 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.92:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.27: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 72.7 / -29 · As background with white / black text: Lc -78.1 / 31.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: #ca2e8a;
  --color-brand-oklch: oklch(57.43% 0.2075 349.77);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(202 46 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ca2e8a] text-[#ca2e8a] border-[#ca2e8a]">