#BA397B#BA397B

#BA397B is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.2% C 0.176 H 353.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#BA397B
RGBrgb(186, 57, 123)
HSLhsl(329, 53%, 48%)
HSVhsv(329, 69%, 73%)
CMYKcmyk(0%, 69.4%, 33.9%, 27.1%)
CIE-LABlab(45.36, 57.12, -8.39)
CIE-LCHlch(45.36, 57.74, 351.64°)
OKLaboklab(55.21% 0.1747 -0.0215)
OKLCHoklch(55.21% 0.176 353)
XYZxyz(25.2894, 14.7983, 20.2596)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA397B #39BA78
analogous
#B839BA #BA397B #BA393B
triadic
#BA397B #7BBA39 #397BBA
tetradic
#BA397B #BAB839 #39BA78 #393BBA
square
#BA397B #BAB839 #39BA78 #393BBA
split-complementary
#BA397B #3BBA39 #39BAB8
monochromatic
#5C1C3D #8B2B5C #BA397B #CF6199 #DD90B8

Accessibility & contrast

On white

5.30
#BA397B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#BA397B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA397B
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA397B#FFFFFF#000000##FFFFFF
##BA397B1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5C7D
Deuteranopia (green-blind)
#737478
Tritanopia (blue-blind)
#C82F55
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba397b;
/* rgb */ color: rgb(186, 57, 123);
/* oklch */ color: oklch(55.2% 0.176 353.0);
Tailwind
colors: {
  custom: {
    50: '#d379a1',
    500: '#ba397b',
    950: '#000000',
  },
}
SCSS
$custom: #ba397b;
$custom-light: #d379a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba397b",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 329.302,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55211,
    "c": 0.17599,
    "h": 353
  },
  "luminance": 0.14795
}

Semantic roles & 50–950 ramp

primary
#BA397B
secondary
#87C8A7
accent
#DC924B
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA397B

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

Preview Lab → · Contrast checker → · Palette generator →

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