#BA397D#BA397D

#BA397D is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.3% C 0.177 H 352.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BA397D
RGBrgb(186, 57, 125)
HSLhsl(328, 53%, 48%)
HSVhsv(328, 69%, 73%)
CMYKcmyk(0%, 69.4%, 32.8%, 27.1%)
CIE-LABlab(45.43, 57.36, -9.51)
CIE-LCHlch(45.43, 58.14, 350.59°)
OKLaboklab(55.29% 0.1752 -0.0245)
OKLCHoklch(55.29% 0.177 352)
XYZxyz(25.4159, 14.8489, 20.9257)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA397D #39BA76
analogous
#B639BA #BA397D #BA393D
triadic
#BA397D #7DBA39 #397DBA
tetradic
#BA397D #BAB639 #39BA76 #393DBA
square
#BA397D #BAB639 #39BA76 #393DBA
split-complementary
#BA397D #3DBA39 #39BAB6
monochromatic
#5C1C3E #8B2B5E #BA397D #CF619B #DD90B9

Accessibility & contrast

On white

5.29
#BA397D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#BA397D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA397D
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA397D#FFFFFF#000000##FFFFFF
##BA397D1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5D7F
Deuteranopia (green-blind)
#72747A
Tritanopia (blue-blind)
#C83056
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba397d;
/* rgb */ color: rgb(186, 57, 125);
/* oklch */ color: oklch(55.3% 0.177 352.0);
Tailwind
colors: {
  custom: {
    50: '#d379a2',
    500: '#ba397d',
    950: '#000000',
  },
}
SCSS
$custom: #ba397d;
$custom-light: #d379a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba397d",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 328.372,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55286,
    "c": 0.17695,
    "h": 352
  },
  "luminance": 0.14846
}

Semantic roles & 50–950 ramp

primary
#BA397D
secondary
#87C8A6
accent
#DC904B
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA397D

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

Preview Lab → · Contrast checker → · Palette generator →

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