#BA2F2D#BA2F2D

#BA2F2D is a mid, vivid red. Relative luminance 0.127; OKLCH L 52.3% C 0.176 H 26.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#BA2F2D
RGBrgb(186, 47, 45)
HSLhsl(1, 61%, 45%)
HSVhsv(1, 76%, 73%)
CMYKcmyk(0%, 74.7%, 75.8%, 27.1%)
CIE-LABlab(42.25, 54.70, 35.18)
CIE-LCHlch(42.25, 65.04, 32.75°)
OKLaboklab(52.33% 0.1579 0.0784)
OKLCHoklch(52.33% 0.176 26.4)
XYZxyz(21.7424, 12.6650, 3.7819)
Luminance0.1266 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F2D #2DB8BA
analogous
#BA2D71 #BA2F2D #BA752D
triadic
#BA2F2D #2DBA2F #2F2DBA
tetradic
#BA2F2D #71BA2D #2DB8BA #752DBA
square
#BA2F2D #71BA2D #2DB8BA #752DBA
split-complementary
#BA2F2D #2DBA75 #2D71BA
monochromatic
#571615 #892321 #BA2F2D #D55250 #E08281

Accessibility & contrast

On white

5.94
#BA2F2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2F2D
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F2D#FFFFFF#000000##FFFFFF
##BA2F2D1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59502B
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#CD0030
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba2f2d;
/* rgb */ color: rgb(186, 47, 45);
/* oklch */ color: oklch(52.3% 0.176 26.4);
Tailwind
colors: {
  custom: {
    50: '#d87366',
    500: '#ba2f2d',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f2d;
$custom-light: #d87366;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f2d",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 45
  },
  "hsl": {
    "h": 0.851,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52329,
    "c": 0.17626,
    "h": 26.4
  },
  "luminance": 0.12662
}

Semantic roles & 50–950 ramp

primary
#BA2F2D
secondary
#79C8C9
accent
#E2E444
background
#FEF7F6
surface
#FDEDEB
border
#D5C8C6
text
#160906
muted
#847B7A

Preview Lab

Preview with #BA2F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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