#BA2F2B#BA2F2B

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

Color values

HEX#BA2F2B
RGBrgb(186, 47, 43)
HSLhsl(2, 62%, 45%)
HSVhsv(2, 77%, 73%)
CMYKcmyk(0%, 74.7%, 76.9%, 27.1%)
CIE-LABlab(42.23, 54.62, 36.30)
CIE-LCHlch(42.23, 65.58, 33.61°)
OKLaboklab(52.3% 0.1572 0.0803)
OKLCHoklch(52.3% 0.177 27)
XYZxyz(21.7048, 12.6499, 3.5839)
Luminance0.1265 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F2B #2BB6BA
analogous
#BA2B6F #BA2F2B #BA762B
triadic
#BA2F2B #2BBA2F #2F2BBA
tetradic
#BA2F2B #6FBA2B #2BB6BA #762BBA
square
#BA2F2B #6FBA2B #2BB6BA #762BBA
split-complementary
#BA2F2B #2BBA76 #2B6FBA
monochromatic
#571614 #882220 #BA2F2B #D6504C #E1817E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2F2B#FFFFFF#000000##FFFFFF
##BA2F2B1.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)
#595029
Deuteranopia (green-blind)
#7B6F25
Tritanopia (blue-blind)
#CD0030
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba2f2b;
/* rgb */ color: rgb(186, 47, 43);
/* oklch */ color: oklch(52.3% 0.177 27.0);
Tailwind
colors: {
  custom: {
    50: '#d87265',
    500: '#ba2f2b',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f2b;
$custom-light: #d87265;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f2b",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 43
  },
  "hsl": {
    "h": 1.678,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52304,
    "c": 0.17651,
    "h": 27
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#BA2F2B
secondary
#77C7CA
accent
#E1E642
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160905
muted
#847B7A

Preview Lab

Preview with #BA2F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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