#BA2828#BA2828

#BA2828 is a mid, vivid red. Relative luminance 0.121; OKLCH L 51.7% C 0.182 H 26.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#BA2828
RGBrgb(186, 40, 40)
HSLhsl(0, 65%, 44%)
HSVhsv(0, 78%, 73%)
CMYKcmyk(0%, 78.5%, 78.5%, 27.1%)
CIE-LABlab(41.40, 56.76, 37.12)
CIE-LCHlch(41.40, 67.82, 33.18°)
OKLaboklab(51.67% 0.1633 0.0812)
OKLCHoklch(51.67% 0.182 26.4)
XYZxyz(21.3941, 12.1133, 3.2187)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2828 #28BABA
analogous
#BA2871 #BA2828 #BA7128
triadic
#BA2828 #28BA28 #2828BA
tetradic
#BA2828 #71BA28 #28BABA #7128BA
square
#BA2828 #71BA28 #28BABA #7128BA
split-complementary
#BA2828 #28BA71 #2871BA
monochromatic
#551212 #881D1D #BA2828 #D84848 #E27A7A

Accessibility & contrast

On white

6.14
#BA2828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#BA2828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2828
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2828#FFFFFF#000000##FFFFFF
##BA28281.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564D26
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#CD002A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ba2828;
/* rgb */ color: rgb(186, 40, 40);
/* oklch */ color: oklch(51.7% 0.182 26.4);
Tailwind
colors: {
  custom: {
    50: '#d87063',
    500: '#ba2828',
    950: '#000000',
  },
}
SCSS
$custom: #ba2828;
$custom-light: #d87063;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2828",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 40
  },
  "hsl": {
    "h": 0,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51672,
    "c": 0.18237,
    "h": 26.4
  },
  "luminance": 0.1211
}

Semantic roles & 50–950 ramp

primary
#BA2828
secondary
#73CACA
accent
#E8E840
background
#FEF7F5
surface
#FDEDEA
border
#D5C8C6
text
#170805
muted
#857B79

Preview Lab

Preview with #BA2828

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

Preview Lab → · Contrast checker → · Palette generator →

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