#BA315D#BA315D

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

Color values

HEX#BA315D
RGBrgb(186, 49, 93)
HSLhsl(341, 58%, 46%)
HSVhsv(341, 74%, 73%)
CMYKcmyk(0%, 73.7%, 50%, 27.1%)
CIE-LABlab(43.40, 56.99, 7.29)
CIE-LCHlch(43.40, 57.46, 7.29°)
OKLaboklab(53.47% 0.174 0.0191)
OKLCHoklch(53.47% 0.175 6.2)
XYZxyz(23.3258, 13.4292, 11.7176)
Luminance0.1343 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA315D #31BA8E
analogous
#BA31A1 #BA315D #BA4931
triadic
#BA315D #5DBA31 #315DBA
tetradic
#BA315D #A1BA31 #31BA8E #4931BA
square
#BA315D #A1BA31 #31BA8E #4931BA
split-complementary
#BA315D #31BA49 #31A1BA
monochromatic
#59172D #8A2445 #BA315D #D2567E #DF86A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA315D#FFFFFF#000000##FFFFFF
##BA315D1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52555E
Deuteranopia (green-blind)
#76705A
Tritanopia (blue-blind)
#CB1243
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba315d;
/* rgb */ color: rgb(186, 49, 93);
/* oklch */ color: oklch(53.5% 0.175 6.2);
Tailwind
colors: {
  custom: {
    50: '#d5758a',
    500: '#ba315d',
    950: '#000000',
  },
}
SCSS
$custom: #ba315d;
$custom-light: #d5758a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba315d",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 340.73,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53473,
    "c": 0.17499,
    "h": 6.2
  },
  "luminance": 0.13426
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA315D

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

Preview Lab → · Contrast checker → · Palette generator →

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