#BA2F4E

A color in the Red, Pink family

#ba2f4e is a color in the Red, Pink family: RGB(186, 47, 78), HSL(347°, 60%, 46%), CMYK(0%, 75%, 58%, 27%). Closest named color: firebrick. Contrast is 5.83:1 on white and 3.6:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ba2f4e
RGBrgb(186 47 78)
RGB (legacy)rgb(186, 47, 78)
RGB %rgb(73% 18% 31%)
HSLhsl(347 60% 46%)
HSV / HSBhsv(347, 75%, 73%)
HWBhwb(347 18% 27%)
CMYKcmyk(0%, 75%, 58%, 27%)
CIELAB (D50)lab(43.4 56.72 17.11)
LCHlch(43.4 59.25 16.79)
OKLaboklab(0.5291 0.1704 0.0393)
OKLCHoklch(0.5291 0.1748 12.98)
Decimal12201806

Properties

Color ToneRed, Pink
Closest named colorfirebrick ΔE 5.4
Closest web-safe color#cc3366
Hue347°
Saturation (HSL / HSV)60% / 75%
Lightness (HSL)46%
Brightness or Value (HSV)73%
Luminance (Rec.601 / Rec.709)36% / 31%
Relative luminance (WCAG)0.1302
Red / Green / Blue186 / 47 / 78

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.83:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.60: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.9 / -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: #ba2f4e;
  --color-brand-oklch: oklch(52.91% 0.1748 12.98);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(186 47 78 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ba2f4e] text-[#ba2f4e] border-[#ba2f4e]">