#BA2F4F#BA2F4F

#BA2F4F is a mid, vivid red. Relative luminance 0.130; OKLCH L 52.9% C 0.175 H 12.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#BA2F4F
RGBrgb(186, 47, 79)
HSLhsl(346, 60%, 46%)
HSVhsv(346, 75%, 73%)
CMYKcmyk(0%, 74.7%, 57.5%, 27.1%)
CIE-LABlab(42.82, 56.58, 15.22)
CIE-LCHlch(42.82, 58.59, 15.05°)
OKLaboklab(52.94% 0.1708 0.0379)
OKLCHoklch(52.94% 0.175 12.5)
XYZxyz(22.6797, 13.0399, 8.7183)
Luminance0.1304 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F4F #2FBA9A
analogous
#BA2F94 #BA2F4F #BA542F
triadic
#BA2F4F #4FBA2F #2F4FBA
tetradic
#BA2F4F #94BA2F #2FBA9A #542FBA
square
#BA2F4F #94BA2F #2FBA9A #542FBA
split-complementary
#BA2F4F #2FBA54 #2F94BA
monochromatic
#581625 #89233A #BA2F4F #D35370 #E08499

Accessibility & contrast

On white

5.82
#BA2F4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#BA2F4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F4F
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F4F#FFFFFF#000000##FFFFFF
##BA2F4F1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54534F
Deuteranopia (green-blind)
#786F4B
Tritanopia (blue-blind)
#CB003C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ba2f4f;
/* rgb */ color: rgb(186, 47, 79);
/* oklch */ color: oklch(52.9% 0.175 12.5);
Tailwind
colors: {
  custom: {
    50: '#d57380',
    500: '#ba2f4f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f4f;
$custom-light: #d57380;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f4f",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 79
  },
  "hsl": {
    "h": 346.187,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.17493,
    "h": 12.5
  },
  "luminance": 0.13037
}

Semantic roles & 50–950 ramp

primary
#BA2F4F
secondary
#7CC9B7
accent
#E3BE45
background
#FEF7F7
surface
#FCEDEE
border
#D5C8C9
text
#16090A
muted
#847B7C

Preview Lab

Preview with #BA2F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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