#B52182

A color in the Purple, Crimson, Magenta family

#b52182 is a color in the Purple, Crimson, Magenta family: RGB(181, 33, 130), HSL(321°, 69%, 42%), CMYK(0%, 82%, 28%, 29%). Closest named color: mediumvioletred. Contrast is 5.99:1 on white and 3.5:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b52182
RGBrgb(181 33 130)
RGB (legacy)rgb(181, 33, 130)
RGB %rgb(71% 13% 51%)
HSLhsl(321 69% 42%)
HSV / HSBhsv(321, 82%, 71%)
HWBhwb(321 13% 29%)
CMYKcmyk(0%, 82%, 28%, 29%)
CIELAB (D50)lab(42.34 62.72 -16.91)
LCHlch(42.34 64.95 344.91)
OKLaboklab(0.5271 0.1957 -0.0472)
OKLCHoklch(0.5271 0.2013 346.45)
Decimal11870594

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 3.5
Closest web-safe color#cc3399
Hue321°
Saturation (HSL / HSV)69% / 82%
Lightness (HSL)42%
Brightness or Value (HSV)71%
Luminance (Rec.601 / Rec.709)35% / 28%
Relative luminance (WCAG)0.1252
Red / Green / Blue181 / 33 / 130

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.99:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.50: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.4 / -23.4 · As background with white / black text: Lc -83.7 / 25.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: #b52182;
  --color-brand-oklch: oklch(52.71% 0.2013 346.45);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(181 33 130 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b52182] text-[#b52182] border-[#b52182]">