#BA397E#BA397E

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

Color values

HEX#BA397E
RGBrgb(186, 57, 126)
HSLhsl(328, 53%, 48%)
HSVhsv(328, 69%, 73%)
CMYKcmyk(0%, 69.4%, 32.3%, 27.1%)
CIE-LABlab(45.46, 57.47, -10.07)
CIE-LCHlch(45.46, 58.35, 350.07°)
OKLaboklab(55.32% 0.1755 -0.026)
OKLCHoklch(55.32% 0.177 351.6)
XYZxyz(25.4801, 14.8746, 21.2639)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA397E #39BA75
analogous
#B539BA #BA397E #BA393E
triadic
#BA397E #7EBA39 #397EBA
tetradic
#BA397E #BAB539 #39BA75 #393EBA
square
#BA397E #BAB539 #39BA75 #393EBA
split-complementary
#BA397E #3EBA39 #39BAB5
monochromatic
#5C1C3F #8B2B5E #BA397E #CF619C #DD90B9

Accessibility & contrast

On white

5.28
#BA397E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA397E
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA397E#FFFFFF#000000##FFFFFF
##BA397E1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5D80
Deuteranopia (green-blind)
#72747B
Tritanopia (blue-blind)
#C83156
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba397e;
/* rgb */ color: rgb(186, 57, 126);
/* oklch */ color: oklch(55.3% 0.177 351.6);
Tailwind
colors: {
  custom: {
    50: '#d379a3',
    500: '#ba397e',
    950: '#000000',
  },
}
SCSS
$custom: #ba397e;
$custom-light: #d379a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba397e",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 327.907,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55323,
    "c": 0.17744,
    "h": 351.6
  },
  "luminance": 0.14872
}

Semantic roles & 50–950 ramp

primary
#BA397E
secondary
#87C8A5
accent
#DC8F4B
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA397E

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

Preview Lab → · Contrast checker → · Palette generator →

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