#B8317A

A color in the Purple, Crimson, Magenta family

#b8317a is a color in the Purple, Crimson, Magenta family: RGB(184, 49, 122), HSL(328°, 58%, 46%), CMYK(0%, 73%, 34%, 28%). Closest named color: mediumvioletred. Contrast is 5.59:1 on white and 3.76:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#b8317a
RGBrgb(184 49 122)
RGB (legacy)rgb(184, 49, 122)
RGB %rgb(72% 19% 48%)
HSLhsl(328 58% 46%)
HSV / HSBhsv(328, 73%, 72%)
HWBhwb(328 19% 28%)
CMYKcmyk(0%, 73%, 34%, 28%)
CIELAB (D50)lab(44.3 58.35 -8.99)
LCHlch(44.3 59.04 351.24)
OKLaboklab(0.5409 0.1816 -0.0257)
OKLCHoklch(0.5409 0.1835 351.96)
Decimal12071290

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 4.1
Closest web-safe color#cc3366
Hue328°
Saturation (HSL / HSV)58% / 73%
Lightness (HSL)46%
Brightness or Value (HSV)72%
Luminance (Rec.601 / Rec.709)38% / 33%
Relative luminance (WCAG)0.1379
Red / Green / Blue184 / 49 / 122

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.59:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.76: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 76.8 / -25 · As background with white / black text: Lc -82.1 / 27.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: #b8317a;
  --color-brand-oklch: oklch(54.09% 0.1835 351.96);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(184 49 122 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b8317a] text-[#b8317a] border-[#b8317a]">