#BA2C8A

A color in the Purple, Crimson, Magenta family

#ba2c8a is a color in the Purple, Crimson, Magenta family: RGB(186, 44, 138), HSL(320°, 62%, 45%), CMYK(0%, 76%, 26%, 27%). Closest named color: mediumvioletred. Contrast is 5.5:1 on white and 3.82:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ba2c8a
RGBrgb(186 44 138)
RGB (legacy)rgb(186, 44, 138)
RGB %rgb(73% 17% 54%)
HSLhsl(320 62% 45%)
HSV / HSBhsv(320, 76%, 73%)
HWBhwb(320 17% 27%)
CMYKcmyk(0%, 76%, 26%, 27%)
CIELAB (D50)lab(44.62 61.8 -18.24)
LCHlch(44.62 64.44 343.56)
OKLaboklab(0.5466 0.1922 -0.0507)
OKLCHoklch(0.5466 0.1988 345.21)
Decimal12201098

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 2.9
Closest web-safe color#cc3399
Hue320°
Saturation (HSL / HSV)62% / 76%
Lightness (HSL)45%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)38% / 32%
Relative luminance (WCAG)0.1408
Red / Green / Blue186 / 44 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.50:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.82: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 76.2 / -25.6 · As background with white / black text: Lc -81.5 / 27.9

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: #ba2c8a;
  --color-brand-oklch: oklch(54.66% 0.1988 345.21);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(186 44 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ba2c8a] text-[#ba2c8a] border-[#ba2c8a]">