#B5287C

A color in the Purple, Crimson, Magenta family

#b5287c is a color in the Purple, Crimson, Magenta family: RGB(181, 40, 124), HSL(324°, 64%, 43%), CMYK(0%, 78%, 31%, 29%). Closest named color: mediumvioletred. Contrast is 5.9:1 on white and 3.56:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#b5287c
RGBrgb(181 40 124)
RGB (legacy)rgb(181, 40, 124)
RGB %rgb(71% 16% 49%)
HSLhsl(324 64% 43%)
HSV / HSBhsv(324, 78%, 71%)
HWBhwb(324 16% 29%)
CMYKcmyk(0%, 78%, 31%, 29%)
CIELAB (D50)lab(42.8 60.41 -12.53)
LCHlch(42.8 61.7 348.28)
OKLaboklab(0.5294 0.1885 -0.0352)
OKLCHoklch(0.5294 0.1918 349.41)
Decimal11872380

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 3.8
Closest web-safe color#cc3366
Hue324°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)43%
Brightness or Value (HSV)71%
Luminance (Rec.601 / Rec.709)36% / 30%
Relative luminance (WCAG)0.128
Red / Green / Blue181 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.90:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.56: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 78.1 / -23.6 · As background with white / black text: Lc -83.4 / 25.9

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