#BA315E#BA315E

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

Color values

HEX#BA315E
RGBrgb(186, 49, 94)
HSLhsl(340, 58%, 46%)
HSVhsv(340, 74%, 73%)
CMYKcmyk(0%, 73.7%, 49.5%, 27.1%)
CIE-LABlab(43.43, 57.08, 6.70)
CIE-LCHlch(43.43, 57.47, 6.70°)
OKLaboklab(53.5% 0.1743 0.0176)
OKLCHoklch(53.5% 0.175 5.8)
XYZxyz(23.3704, 13.4470, 11.9524)
Luminance0.1344 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA315E #31BA8D
analogous
#BA31A2 #BA315E #BA4831
triadic
#BA315E #5EBA31 #315EBA
tetradic
#BA315E #A2BA31 #31BA8D #4831BA
square
#BA315E #A2BA31 #31BA8D #4831BA
split-complementary
#BA315E #31BA48 #31A2BA
monochromatic
#59172D #8A2446 #BA315E #D2567F #DF86A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA315E#FFFFFF#000000##FFFFFF
##BA315E1.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)
#52555F
Deuteranopia (green-blind)
#76705B
Tritanopia (blue-blind)
#CB1344
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba315e;
/* rgb */ color: rgb(186, 49, 94);
/* oklch */ color: oklch(53.5% 0.175 5.8);
Tailwind
colors: {
  custom: {
    50: '#d5758b',
    500: '#ba315e',
    950: '#000000',
  },
}
SCSS
$custom: #ba315e;
$custom-light: #d5758b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba315e",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 340.292,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53501,
    "c": 0.17521,
    "h": 5.8
  },
  "luminance": 0.13444
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA315E

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

Preview Lab → · Contrast checker → · Palette generator →

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