#BA2827#BA2827

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

Color values

HEX#BA2827
RGBrgb(186, 40, 39)
HSLhsl(0, 65%, 44%)
HSVhsv(0, 79%, 73%)
CMYKcmyk(0%, 78.5%, 79%, 27.1%)
CIE-LABlab(41.38, 56.72, 37.67)
CIE-LCHlch(41.38, 68.09, 33.59°)
OKLaboklab(51.66% 0.163 0.0821)
OKLCHoklch(51.66% 0.182 26.7)
XYZxyz(21.3773, 12.1066, 3.1303)
Luminance0.1210 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2827 #27B9BA
analogous
#BA2770 #BA2827 #BA7227
triadic
#BA2827 #27BA28 #2827BA
tetradic
#BA2827 #70BA27 #27B9BA #7227BA
square
#BA2827 #70BA27 #27B9BA #7227BA
split-complementary
#BA2827 #27BA72 #2770BA
monochromatic
#551212 #871D1C #BA2827 #D84746 #E37979

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2827#FFFFFF#000000##FFFFFF
##BA28271.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)
#564D25
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#CD002A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ba2827;
/* rgb */ color: rgb(186, 40, 39);
/* oklch */ color: oklch(51.7% 0.182 26.7);
Tailwind
colors: {
  custom: {
    50: '#d87062',
    500: '#ba2827',
    950: '#000000',
  },
}
SCSS
$custom: #ba2827;
$custom-light: #d87062;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2827",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 39
  },
  "hsl": {
    "h": 0.408,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51661,
    "c": 0.18249,
    "h": 26.7
  },
  "luminance": 0.12103
}

Semantic roles & 50–950 ramp

primary
#BA2827
secondary
#72CACB
accent
#E7E840
background
#FEF7F5
surface
#FDEDEA
border
#D5C8C6
text
#170805
muted
#857B79

Preview Lab

Preview with #BA2827

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

Preview Lab → · Contrast checker → · Palette generator →

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