#B5259C

A color in the Purple, Crimson, Magenta family

#b5259c is a color in the Purple, Crimson, Magenta family: RGB(181, 37, 156), HSL(310°, 66%, 43%), CMYK(0%, 80%, 14%, 29%). Closest named color: mediumvioletred. Contrast is 5.66:1 on white and 3.71:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b5259c
RGBrgb(181 37 156)
RGB (legacy)rgb(181, 37, 156)
RGB %rgb(71% 15% 61%)
HSLhsl(310 66% 43%)
HSV / HSBhsv(310, 80%, 71%)
HWBhwb(310 15% 29%)
CMYKcmyk(0%, 80%, 14%, 29%)
CIELAB (D50)lab(43.69 64.16 -30.64)
LCHlch(43.69 71.1 334.48)
OKLaboklab(0.5421 0.196 -0.0852)
OKLCHoklch(0.5421 0.2137 336.52)
Decimal11871644

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 5.2
Closest web-safe color#cc3399
Hue310°
Saturation (HSL / HSV)66% / 80%
Lightness (HSL)43%
Brightness or Value (HSV)71%
Luminance (Rec.601 / Rec.709)37% / 30%
Relative luminance (WCAG)0.1355
Red / Green / Blue181 / 37 / 156

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.66:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.71: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 / -24.9 · As background with white / black text: Lc -82.2 / 27.2

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: #b5259c;
  --color-brand-oklch: oklch(54.21% 0.2137 336.52);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(181 37 156 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b5259c] text-[#b5259c] border-[#b5259c]">