#BB1C8A

A color in the Purple, Crimson, Magenta family

#bb1c8a is a color in the Purple, Crimson, Magenta family: RGB(187, 28, 138), HSL(318°, 74%, 42%), CMYK(0%, 85%, 26%, 27%). Closest named color: mediumvioletred. Contrast is 5.76:1 on white and 3.65:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#bb1c8a
RGBrgb(187 28 138)
RGB (legacy)rgb(187, 28, 138)
RGB %rgb(73% 11% 54%)
HSLhsl(318 74% 42%)
HSV / HSBhsv(318, 85%, 73%)
HWBhwb(318 11% 27%)
CMYKcmyk(0%, 85%, 26%, 27%)
CIELAB (D50)lab(43.4 65.94 -20.07)
LCHlch(43.4 68.93 343.07)
OKLaboklab(0.538 0.2057 -0.0559)
OKLCHoklch(0.538 0.2131 344.79)
Decimal12262538

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 2.6
Closest web-safe color#cc3399
Hue318°
Saturation (HSL / HSV)74% / 85%
Lightness (HSL)42%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)35% / 27%
Relative luminance (WCAG)0.1323
Red / Green / Blue187 / 28 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.76:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.65: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 77.1 / -24.7 · As background with white / black text: Lc -82.4 / 27

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: #bb1c8a;
  --color-brand-oklch: oklch(53.8% 0.2131 344.79);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(187 28 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#bb1c8a] text-[#bb1c8a] border-[#bb1c8a]">