#BA2228#BA2228

#BA2228 is a mid, vivid red. Relative luminance 0.117; OKLCH L 51.2% C 0.187 H 25.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#BA2228
RGBrgb(186, 34, 40)
HSLhsl(358, 69%, 43%)
HSVhsv(358, 82%, 73%)
CMYKcmyk(0%, 81.7%, 78.5%, 27.1%)
CIE-LABlab(40.80, 58.44, 36.49)
CIE-LCHlch(40.80, 68.90, 31.98°)
OKLaboklab(51.23% 0.1686 0.0798)
OKLCHoklch(51.23% 0.187 25.3)
XYZxyz(21.2073, 11.7398, 3.1564)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2228 #22BAB4
analogous
#BA2274 #BA2228 #BA6822
triadic
#BA2228 #28BA22 #2228BA
tetradic
#BA2228 #74BA22 #22BAB4 #6822BA
square
#BA2228 #74BA22 #22BAB4 #6822BA
split-complementary
#BA2228 #22BA68 #2274BA
monochromatic
#530F12 #86191D #BA2228 #DC3E44 #E57176

Accessibility & contrast

On white

6.27
#BA2228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#BA2228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2228
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2228#FFFFFF#000000##FFFFFF
##BA22281.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534B26
Deuteranopia (green-blind)
#786C21
Tritanopia (blue-blind)
#CD0026
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #ba2228;
/* rgb */ color: rgb(186, 34, 40);
/* oklch */ color: oklch(51.2% 0.187 25.3);
Tailwind
colors: {
  custom: {
    50: '#d86d62',
    500: '#ba2228',
    950: '#000000',
  },
}
SCSS
$custom: #ba2228;
$custom-light: #d86d62;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2228",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 357.632,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.51229,
    "c": 0.18656,
    "h": 25.3
  },
  "luminance": 0.11736
}

Semantic roles & 50–950 ramp

primary
#BA2228
secondary
#6CCCC8
accent
#ECE53C
background
#FEF7F5
surface
#FDEDEA
border
#D5C8C6
text
#170805
muted
#857B79

Preview Lab

Preview with #BA2228

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

Preview Lab → · Contrast checker → · Palette generator →

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