#BA02CA

A color in the Purple, Crimson, Magenta family

#ba02ca is a color in the Purple, Crimson, Magenta family: RGB(186, 2, 202), HSL(295°, 98%, 40%), CMYK(8%, 99%, 0%, 21%). Closest named color: darkorchid. Contrast is 5.32:1 on white and 3.95:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ba02ca
RGBrgb(186 2 202)
RGB (legacy)rgb(186, 2, 202)
RGB %rgb(73% 1% 79%)
HSLhsl(295 98% 40%)
HSV / HSBhsv(295, 99%, 79%)
HWBhwb(295 1% 21%)
CMYKcmyk(8%, 99%, 0%, 21%)
CIELAB (D50)lab(45.01 75.39 -55.59)
LCHlch(45.01 93.67 323.6)
OKLaboklab(0.5643 0.2138 -0.1557)
OKLCHoklch(0.5643 0.2645 323.94)
Decimal12190410

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkorchid ΔE 6.9
Closest web-safe color#cc00cc
Hue295°
Saturation (HSL / HSV)98% / 99%
Lightness (HSL)40%
Brightness or Value (HSV)79%
Luminance (Rec.601 / Rec.709)31% / 22%
Relative luminance (WCAG)0.1475
Red / Green / Blue186 / 2 / 202

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.32:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.95: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 / -27.7 · As background with white / black text: Lc -79.4 / 30.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: #ba02ca;
  --color-brand-oklch: oklch(56.43% 0.2645 323.94);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(186 2 202 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ba02ca] text-[#ba02ca] border-[#ba02ca]">