#AA02CA

A color in the Purple, Crimson, Magenta family

#aa02ca is a color in the Purple, Crimson, Magenta family: RGB(170, 2, 202), HSL(290°, 98%, 40%), CMYK(16%, 99%, 0%, 21%). Closest named color: darkorchid. Contrast is 5.88:1 on white and 3.57:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#aa02ca
RGBrgb(170 2 202)
RGB (legacy)rgb(170, 2, 202)
RGB %rgb(67% 1% 79%)
HSLhsl(290 98% 40%)
HSV / HSBhsv(290, 99%, 79%)
HWBhwb(290 1% 21%)
CMYKcmyk(16%, 99%, 0%, 21%)
CIELAB (D50)lab(42.1 72.58 -60.44)
LCHlch(42.1 94.45 320.21)
OKLaboklab(0.5401 0.1963 -0.1696)
OKLCHoklch(0.5401 0.2594 319.18)
Decimal11141834

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkorchid ΔE 4.6
Closest web-safe color#9900cc
Hue290°
Saturation (HSL / HSV)98% / 99%
Lightness (HSL)40%
Brightness or Value (HSV)79%
Luminance (Rec.601 / Rec.709)29% / 20%
Relative luminance (WCAG)0.1285
Red / Green / Blue170 / 2 / 202

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.88:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.57: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 77 / -24.8 · As background with white / black text: Lc -82.3 / 27.1

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