#BA4E8A

A color in the Purple, Crimson, Magenta family

#ba4e8a is a color in the Purple, Crimson, Magenta family: RGB(186, 78, 138), HSL(327°, 44%, 52%), CMYK(0%, 58%, 26%, 27%). Closest named color: mediumvioletred. Contrast is 4.62:1 on white and 4.54:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ba4e8a
RGBrgb(186 78 138)
RGB (legacy)rgb(186, 78, 138)
RGB %rgb(73% 31% 54%)
HSLhsl(327 44% 52%)
HSV / HSBhsv(327, 58%, 73%)
HWBhwb(327 31% 27%)
CMYKcmyk(0%, 58%, 26%, 27%)
CIELAB (D50)lab(49.41 49.1 -11.03)
LCHlch(49.41 50.32 347.33)
OKLaboklab(0.582 0.1512 -0.0308)
OKLCHoklch(0.582 0.1543 348.5)
Decimal12209802

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 7.3
Closest web-safe color#cc6699
Hue327°
Saturation (HSL / HSV)44% / 58%
Lightness (HSL)52%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)46% / 41%
Relative luminance (WCAG)0.1772
Red / Green / Blue186 / 78 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.62:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.54: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 71.5 / -30.2 · As background with white / black text: Lc -77 / 32.6

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