#B8317F

A color in the Purple, Crimson, Magenta family

#b8317f is a color in the Purple, Crimson, Magenta family: RGB(184, 49, 127), HSL(325°, 58%, 46%), CMYK(0%, 73%, 31%, 28%). Closest named color: mediumvioletred. Contrast is 5.55:1 on white and 3.78:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b8317f
RGBrgb(184 49 127)
RGB (legacy)rgb(184, 49, 127)
RGB %rgb(72% 19% 50%)
HSLhsl(325 58% 46%)
HSV / HSBhsv(325, 73%, 72%)
HWBhwb(325 19% 28%)
CMYKcmyk(0%, 73%, 31%, 28%)
CIELAB (D50)lab(44.45 58.77 -11.83)
LCHlch(44.45 59.95 348.62)
OKLaboklab(0.5429 0.1829 -0.0333)
OKLCHoklch(0.5429 0.1859 349.69)
Decimal12071295

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.55:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.78: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.6 / -25.2 · As background with white / black text: Lc -81.9 / 27.5

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: #b8317f;
  --color-brand-oklch: oklch(54.29% 0.1859 349.69);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(184 49 127 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b8317f] text-[#b8317f] border-[#b8317f]">