#B5259D

A color in the Purple, Crimson, Magenta family

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

Open in Picker Generate Scheme

Color Codes

HEX#b5259d
RGBrgb(181 37 157)
RGB (legacy)rgb(181, 37, 157)
RGB %rgb(71% 15% 62%)
HSLhsl(310 66% 43%)
HSV / HSBhsv(310, 80%, 71%)
HWBhwb(310 15% 29%)
CMYKcmyk(0%, 80%, 13%, 29%)
CIELAB (D50)lab(43.73 64.26 -31.17)
LCHlch(43.73 71.42 334.12)
OKLaboklab(0.5426 0.1961 -0.0867)
OKLCHoklch(0.5426 0.2144 336.16)
Decimal11871645

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 5.3
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.1358
Red / Green / Blue181 / 37 / 157

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.65:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.72: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: #b5259d;
  --color-brand-oklch: oklch(54.26% 0.2144 336.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(181 37 157 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b5259d] text-[#b5259d] border-[#b5259d]">