#BA314F#BA314F

#BA314F is a mid, vivid red. Relative luminance 0.132; OKLCH L 53.1% C 0.173 H 12.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#BA314F
RGBrgb(186, 49, 79)
HSLhsl(347, 58%, 46%)
HSVhsv(347, 74%, 73%)
CMYKcmyk(0%, 73.7%, 57.5%, 27.1%)
CIE-LABlab(43.07, 55.89, 15.55)
CIE-LCHlch(43.07, 58.02, 15.55°)
OKLaboklab(53.12% 0.1686 0.0387)
OKLCHoklch(53.12% 0.173 12.9)
XYZxyz(22.7615, 13.2035, 8.7456)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA314F #31BA9C
analogous
#BA3193 #BA314F #BA5731
triadic
#BA314F #4FBA31 #314FBA
tetradic
#BA314F #93BA31 #31BA9C #5731BA
square
#BA314F #93BA31 #31BA9C #5731BA
split-complementary
#BA314F #31BA57 #3193BA
monochromatic
#591726 #8A243A #BA314F #D25671 #DF869A

Accessibility & contrast

On white

5.77
#BA314F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#BA314F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA314F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA314F#FFFFFF#000000##FFFFFF
##BA314F1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#55544F
Deuteranopia (green-blind)
#78704B
Tritanopia (blue-blind)
#CB053D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ba314f;
/* rgb */ color: rgb(186, 49, 79);
/* oklch */ color: oklch(53.1% 0.173 12.9);
Tailwind
colors: {
  custom: {
    50: '#d57480',
    500: '#ba314f',
    950: '#000000',
  },
}
SCSS
$custom: #ba314f;
$custom-light: #d57480;
$custom-dark: #000000;
JSON
{
  "hex": "#ba314f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 79
  },
  "hsl": {
    "h": 346.861,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53116,
    "c": 0.17296,
    "h": 12.9
  },
  "luminance": 0.132
}

Semantic roles & 50–950 ramp

primary
#BA314F
secondary
#7EC9B8
accent
#E2C046
background
#FEF7F7
surface
#FCEDEE
border
#D5C8C9
text
#16090A
muted
#847B7C

Preview Lab

Preview with #BA314F

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

Preview Lab → · Contrast checker → · Palette generator →

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