#B400A8

A color in the Purple, Crimson, Magenta family

#b400a8 is a color in the Purple, Crimson, Magenta family: RGB(180, 0, 168), HSL(304°, 100%, 35%), CMYK(0%, 100%, 7%, 29%). Closest named color: mediumvioletred. Contrast is 5.99:1 on white and 3.51:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#b400a8
RGBrgb(180 0 168)
RGB (legacy)rgb(180, 0, 168)
RGB %rgb(71% 0% 66%)
HSLhsl(304 100% 35%)
HSV / HSBhsv(304, 100%, 71%)
HWBhwb(304 0% 29%)
CMYKcmyk(0%, 100%, 7%, 29%)
CIELAB (D50)lab(42.04 70.76 -40.41)
LCHlch(42.04 81.49 330.27)
OKLaboklab(0.5329 0.2124 -0.1128)
OKLCHoklch(0.5329 0.2405 332.03)
Decimal11796648

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.99:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.51: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.5 / -24.3 · As background with white / black text: Lc -82.8 / 26.6

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: #b400a8;
  --color-brand-oklch: oklch(53.29% 0.2405 332.03);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(180 0 168 / 50%); }
/* Tailwind CSS */
<div class="bg-[#b400a8] text-[#b400a8] border-[#b400a8]">