#CA02CA

A color in the Purple, Crimson, Magenta family

#ca02ca is a color in the Purple, Crimson, Magenta family: RGB(202, 2, 202), HSL(300°, 98%, 40%), CMYK(0%, 99%, 0%, 21%). Closest named color: mediumorchid. Contrast is 4.8:1 on white and 4.37:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ca02ca
RGBrgb(202 2 202)
RGB (legacy)rgb(202, 2, 202)
RGB %rgb(79% 1% 79%)
HSLhsl(300 98% 40%)
HSV / HSBhsv(300, 99%, 79%)
HWBhwb(300 1% 21%)
CMYKcmyk(0%, 99%, 0%, 21%)
CIELAB (D50)lab(47.96 78.32 -50.67)
LCHlch(47.96 93.29 327.1)
OKLaboklab(0.5891 0.2299 -0.1417)
OKLCHoklch(0.5891 0.27 328.36)
Decimal13238986

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumorchid ΔE 8.5
Closest web-safe color#cc00cc
Hue300°
Saturation (HSL / HSV)98% / 99%
Lightness (HSL)40%
Brightness or Value (HSV)79%
Luminance (Rec.601 / Rec.709)33% / 23%
Relative luminance (WCAG)0.1686
Red / Green / Blue202 / 2 / 202

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.80:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.37: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 70.8 / -30.9 · As background with white / black text: Lc -76.3 / 33.3

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: #ca02ca;
  --color-brand-oklch: oklch(58.91% 0.27 328.36);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(202 2 202 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ca02ca] text-[#ca02ca] border-[#ca02ca]">