#B400A2

A color in the Purple, Crimson, Magenta family

#b400a2 is a color in the Purple, Crimson, Magenta family: RGB(180, 0, 162), HSL(306°, 100%, 35%), CMYK(0%, 100%, 10%, 29%). Closest named color: mediumvioletred. Contrast is 6.07:1 on white and 3.46:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#b400a2
RGBrgb(180 0 162)
RGB (legacy)rgb(180, 0, 162)
RGB %rgb(71% 0% 64%)
HSLhsl(306 100% 35%)
HSV / HSBhsv(306, 100%, 71%)
HWBhwb(306 0% 29%)
CMYKcmyk(0%, 100%, 10%, 29%)
CIELAB (D50)lab(41.76 70.16 -37.27)
LCHlch(41.76 79.45 332.02)
OKLaboklab(0.5295 0.2126 -0.1039)
OKLCHoklch(0.5295 0.2367 333.95)
Decimal11796642

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 6.9
Closest web-safe color#cc0099
Hue306°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)35%
Brightness or Value (HSV)71%
Luminance (Rec.601 / Rec.709)28% / 20%
Relative luminance (WCAG)0.1231
Red / Green / Blue180 / 0 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.07:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.46: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 77.8 / -23.9 · As background with white / black text: Lc -83.1 / 26.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: #b400a2;
  --color-brand-oklch: oklch(52.95% 0.2367 333.95);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(180 0 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b400a2] text-[#b400a2] border-[#b400a2]">