#BA315F#BA315F

#BA315F is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.5% C 0.175 H 5.3°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#BA315F
RGBrgb(186, 49, 95)
HSLhsl(340, 58%, 46%)
HSVhsv(340, 74%, 73%)
CMYKcmyk(0%, 73.7%, 48.9%, 27.1%)
CIE-LABlab(43.46, 57.17, 6.12)
CIE-LCHlch(43.46, 57.49, 6.11°)
OKLaboklab(53.53% 0.1747 0.0162)
OKLCHoklch(53.53% 0.175 5.3)
XYZxyz(23.4156, 13.4651, 12.1903)
Luminance0.1346 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA315F #31BA8C
analogous
#BA31A3 #BA315F #BA4731
triadic
#BA315F #5FBA31 #315FBA
tetradic
#BA315F #A3BA31 #31BA8C #4731BA
square
#BA315F #A3BA31 #31BA8C #4731BA
split-complementary
#BA315F #31BA47 #31A3BA
monochromatic
#59172E #8A2446 #BA315F #D25680 #DF86A4

Accessibility & contrast

On white

5.69
#BA315F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#BA315F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA315F
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA315F#FFFFFF#000000##FFFFFF
##BA315F1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525560
Deuteranopia (green-blind)
#76715C
Tritanopia (blue-blind)
#CA1444
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba315f;
/* rgb */ color: rgb(186, 49, 95);
/* oklch */ color: oklch(53.5% 0.175 5.3);
Tailwind
colors: {
  custom: {
    50: '#d5758c',
    500: '#ba315f',
    950: '#000000',
  },
}
SCSS
$custom: #ba315f;
$custom-light: #d5758c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba315f",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 339.854,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53529,
    "c": 0.17542,
    "h": 5.3
  },
  "luminance": 0.13462
}

Semantic roles & 50–950 ramp

primary
#BA315F
secondary
#7EC9B0
accent
#E2AD46
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090C
muted
#837B7D

Preview Lab

Preview with #BA315F

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

Preview Lab → · Contrast checker → · Palette generator →

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