#BA315C#BA315C

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

Color values

HEX#BA315C
RGBrgb(186, 49, 92)
HSLhsl(341, 58%, 46%)
HSVhsv(341, 74%, 73%)
CMYKcmyk(0%, 73.7%, 50.5%, 27.1%)
CIE-LABlab(43.38, 56.91, 7.87)
CIE-LCHlch(43.38, 57.45, 7.88°)
OKLaboklab(53.45% 0.1736 0.0205)
OKLCHoklch(53.45% 0.175 6.7)
XYZxyz(23.2818, 13.4116, 11.4859)
Luminance0.1341 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA315C #31BA8F
analogous
#BA31A0 #BA315C #BA4A31
triadic
#BA315C #5CBA31 #315CBA
tetradic
#BA315C #A0BA31 #31BA8F #4A31BA
square
#BA315C #A0BA31 #31BA8F #4A31BA
split-complementary
#BA315C #31BA4A #31A0BA
monochromatic
#59172C #8A2444 #BA315C #D2567D #DF86A2

Accessibility & contrast

On white

5.70
#BA315C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#BA315C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA315C
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA315C#FFFFFF#000000##FFFFFF
##BA315C1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52555D
Deuteranopia (green-blind)
#767059
Tritanopia (blue-blind)
#CB1243
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ba315c;
/* rgb */ color: rgb(186, 49, 92);
/* oklch */ color: oklch(53.4% 0.175 6.7);
Tailwind
colors: {
  custom: {
    50: '#d57589',
    500: '#ba315c',
    950: '#000000',
  },
}
SCSS
$custom: #ba315c;
$custom-light: #d57589;
$custom-dark: #000000;
JSON
{
  "hex": "#ba315c",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 341.168,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53445,
    "c": 0.17478,
    "h": 6.7
  },
  "luminance": 0.13408
}

Semantic roles & 50–950 ramp

primary
#BA315C
secondary
#7EC9B1
accent
#E2B146
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090B
muted
#837B7C

Preview Lab

Preview with #BA315C

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

Preview Lab → · Contrast checker → · Palette generator →

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