#BA2A4E#BA2A4E

#BA2A4E is a mid, vivid red. Relative luminance 0.126; OKLCH L 52.5% C 0.179 H 12.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#BA2A4E
RGBrgb(186, 42, 78)
HSLhsl(345, 63%, 45%)
HSVhsv(345, 77%, 73%)
CMYKcmyk(0%, 77.4%, 58.1%, 27.1%)
CIE-LABlab(42.23, 58.11, 15.03)
CIE-LCHlch(42.23, 60.02, 14.50°)
OKLaboklab(52.49% 0.1756 0.0374)
OKLCHoklch(52.49% 0.18 12)
XYZxyz(22.4550, 12.6484, 8.4652)
Luminance0.1265 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2A4E #2ABA96
analogous
#BA2A96 #BA2A4E #BA4E2A
triadic
#BA2A4E #4EBA2A #2A4EBA
tetradic
#BA2A4E #96BA2A #2ABA96 #4E2ABA
square
#BA2A4E #96BA2A #2ABA96 #4E2ABA
split-complementary
#BA2A4E #2ABA4E #2A96BA
monochromatic
#561324 #881F39 #BA2A4E #D64B6E #E27D96

Accessibility & contrast

On white

5.95
#BA2A4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#BA2A4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2A4E
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2A4E#FFFFFF#000000##FFFFFF
##BA2A4E1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52514E
Deuteranopia (green-blind)
#776E4A
Tritanopia (blue-blind)
#CC0039
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba2a4e;
/* rgb */ color: rgb(186, 42, 78);
/* oklch */ color: oklch(52.5% 0.179 12.0);
Tailwind
colors: {
  custom: {
    50: '#d6717f',
    500: '#ba2a4e',
    950: '#000000',
  },
}
SCSS
$custom: #ba2a4e;
$custom-light: #d6717f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2a4e",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 345,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52488,
    "c": 0.1795,
    "h": 12
  },
  "luminance": 0.12645
}

Semantic roles & 50–950 ramp

primary
#BA2A4E
secondary
#76CAB5
accent
#E6BD42
background
#FEF7F7
surface
#FCEDEE
border
#D5C8C9
text
#16090A
muted
#847B7C

Preview Lab

Preview with #BA2A4E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#BA2A4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva