#BD2A8A

A color in the Purple, Crimson, Magenta family

#bd2a8a is a color in the Purple, Crimson, Magenta family: RGB(189, 42, 138), HSL(321°, 64%, 45%), CMYK(0%, 78%, 27%, 26%). Closest named color: mediumvioletred. Contrast is 5.44:1 on white and 3.86:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#bd2a8a
RGBrgb(189 42 138)
RGB (legacy)rgb(189, 42, 138)
RGB %rgb(74% 16% 54%)
HSLhsl(321 64% 45%)
HSV / HSBhsv(321, 78%, 74%)
HWBhwb(321 16% 26%)
CMYKcmyk(0%, 78%, 27%, 26%)
CIELAB (D50)lab(44.97 63.15 -17.64)
LCHlch(44.97 65.57 344.4)
OKLaboklab(0.55 0.1966 -0.0491)
OKLCHoklch(0.55 0.2027 345.97)
Decimal12397194

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 2.4
Closest web-safe color#cc3399
Hue321°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)45%
Brightness or Value (HSV)74%
Luminance (Rec.601 / Rec.709)38% / 31%
Relative luminance (WCAG)0.1431
Red / Green / Blue189 / 42 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.44:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.86: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 75.7 / -26 · As background with white / black text: Lc -81.1 / 28.3

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: #bd2a8a;
  --color-brand-oklch: oklch(55% 0.2027 345.97);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(189 42 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#bd2a8a] text-[#bd2a8a] border-[#bd2a8a]">