#BA4792

A color in the Purple, Crimson, Magenta family

#ba4792 is a color in the Purple, Crimson, Magenta family: RGB(186, 71, 146), HSL(321°, 45%, 50%), CMYK(0%, 62%, 22%, 27%). Closest named color: mediumvioletred. Contrast is 4.77:1 on white and 4.4:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ba4792
RGBrgb(186 71 146)
RGB (legacy)rgb(186, 71, 146)
RGB %rgb(73% 28% 57%)
HSLhsl(321 45% 50%)
HSV / HSBhsv(321, 62%, 73%)
HWBhwb(321 28% 27%)
CMYKcmyk(0%, 62%, 22%, 27%)
CIELAB (D50)lab(48.49 52.92 -17.19)
LCHlch(48.49 55.64 342.01)
OKLaboklab(0.5765 0.1629 -0.0476)
OKLCHoklch(0.5765 0.1697 343.73)
Decimal12208018

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 6
Closest web-safe color#cc3399
Hue321°
Saturation (HSL / HSV)45% / 62%
Lightness (HSL)50%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)45% / 40%
Relative luminance (WCAG)0.1702
Red / Green / Blue186 / 71 / 146

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.77:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.40: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 72.4 / -29.3 · As background with white / black text: Lc -77.8 / 31.7

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: #ba4792;
  --color-brand-oklch: oklch(57.65% 0.1697 343.73);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(186 71 146 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ba4792] text-[#ba4792] border-[#ba4792]">