#B9287C

A color in the Purple, Crimson, Magenta family

#b9287c is a color in the Purple, Crimson, Magenta family: RGB(185, 40, 124), HSL(325°, 64%, 44%), CMYK(0%, 78%, 33%, 27%). Closest named color: mediumvioletred. Contrast is 5.74:1 on white and 3.66:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b9287c
RGBrgb(185 40 124)
RGB (legacy)rgb(185, 40, 124)
RGB %rgb(73% 16% 49%)
HSLhsl(325 64% 44%)
HSV / HSBhsv(325, 78%, 73%)
HWBhwb(325 16% 27%)
CMYKcmyk(0%, 78%, 33%, 27%)
CIELAB (D50)lab(43.56 61.48 -11.29)
LCHlch(43.56 62.51 349.59)
OKLaboklab(0.5361 0.1919 -0.032)
OKLCHoklch(0.5361 0.1946 350.55)
Decimal12134524

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 3.2
Closest web-safe color#cc3366
Hue325°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)44%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)36% / 30%
Relative luminance (WCAG)0.1329
Red / Green / Blue185 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.74:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.66: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.3 / -24.4 · As background with white / black text: Lc -82.6 / 26.8

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: #b9287c;
  --color-brand-oklch: oklch(53.61% 0.1946 350.55);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(185 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b9287c] text-[#b9287c] border-[#b9287c]">