#BA66EA

A color in the Purple, Crimson, Magenta family

#ba66ea is a color in the Purple, Crimson, Magenta family: RGB(186, 102, 234), HSL(278°, 76%, 66%), CMYK(21%, 56%, 0%, 8%). Closest named color: mediumorchid. Contrast is 3.4:1 on white and 6.18:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ba66ea
RGBrgb(186 102 234)
RGB (legacy)rgb(186, 102, 234)
RGB %rgb(73% 40% 92%)
HSLhsl(278 76% 66%)
HSV / HSBhsv(278, 56%, 92%)
HWBhwb(278 40% 8%)
CMYKcmyk(21%, 56%, 0%, 8%)
CIELAB (D50)lab(57.5 50.73 -53.85)
LCHlch(57.5 73.99 313.29)
OKLaboklab(0.6609 0.1329 -0.1503)
OKLCHoklch(0.6609 0.2006 311.5)
Decimal12216042

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumorchid ΔE 4.5
Closest web-safe color#cc66ff
Hue278°
Saturation (HSL / HSV)76% / 56%
Lightness (HSL)66%
Brightness or Value (HSV)92%
Luminance (Rec.601 / Rec.709)56% / 51%
Relative luminance (WCAG)0.2588
Red / Green / Blue186 / 102 / 234

WCAG 2.2 Contrast Ratio

On White (#ffffff)
3.40:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
6.18: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 61 / -40.7 · As background with white / black text: Lc -66.5 / 43

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: #ba66ea;
  --color-brand-oklch: oklch(66.09% 0.2006 311.5);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(186 102 234 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ba66ea] text-[#ba66ea] border-[#ba66ea]">