#BA2727#BA2727

#BA2727 is a mid, vivid red. Relative luminance 0.120; OKLCH L 51.6% C 0.183 H 26.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#BA2727
RGBrgb(186, 39, 39)
HSLhsl(0, 65%, 44%)
HSVhsv(0, 79%, 73%)
CMYKcmyk(0%, 79%, 79%, 27.1%)
CIE-LABlab(41.28, 57.02, 37.56)
CIE-LCHlch(41.28, 68.28, 33.38°)
OKLaboklab(51.58% 0.1639 0.0818)
OKLCHoklch(51.58% 0.183 26.5)
XYZxyz(21.3440, 12.0401, 3.1192)
Luminance0.1204 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2727 #27BABA
analogous
#BA2771 #BA2727 #BA7127
triadic
#BA2727 #27BA27 #2727BA
tetradic
#BA2727 #71BA27 #27BABA #7127BA
square
#BA2727 #71BA27 #27BABA #7127BA
split-complementary
#BA2727 #27BA71 #2771BA
monochromatic
#551212 #871C1C #BA2727 #D84646 #E37979

Accessibility & contrast

On white

6.16
#BA2727 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#BA2727 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2727
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2727#FFFFFF#000000##FFFFFF
##BA27271.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564D25
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#CD0029
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #ba2727;
/* rgb */ color: rgb(186, 39, 39);
/* oklch */ color: oklch(51.6% 0.183 26.5);
Tailwind
colors: {
  custom: {
    50: '#d86f62',
    500: '#ba2727',
    950: '#000000',
  },
}
SCSS
$custom: #ba2727;
$custom-light: #d86f62;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2727",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 39
  },
  "hsl": {
    "h": 0,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51582,
    "c": 0.18321,
    "h": 26.5
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#BA2727
secondary
#72CBCB
accent
#E8E840
background
#FEF7F5
surface
#FDEDEA
border
#D5C8C6
text
#170805
muted
#857B79

Preview Lab

Preview with #BA2727

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

Preview Lab → · Contrast checker → · Palette generator →

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