#BA398F#BA398F

#BA398F is a mid, vivid pink. Relative luminance 0.153; OKLCH L 56.0% C 0.187 H 343.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA398F
RGBrgb(186, 57, 143)
HSLhsl(320, 53%, 48%)
HSVhsv(320, 69%, 73%)
CMYKcmyk(0%, 69.4%, 23.1%, 27.1%)
CIE-LABlab(46.11, 59.62, -19.39)
CIE-LCHlch(46.11, 62.70, 341.98°)
OKLaboklab(56.01% 0.1796 -0.0517)
OKLCHoklch(56.01% 0.187 343.9)
XYZxyz(26.6717, 15.3512, 27.5397)
Luminance0.1535 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA398F #39BA64
analogous
#A439BA #BA398F #BA394F
triadic
#BA398F #8FBA39 #398FBA
tetradic
#BA398F #BAA439 #39BA64 #394FBA
square
#BA398F #BAA439 #39BA64 #394FBA
split-complementary
#BA398F #4FBA39 #39BAA4
monochromatic
#5C1C47 #8B2B6B #BA398F #CF61AA #DD90C3

Accessibility & contrast

On white

5.16
#BA398F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA398F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA398F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA398F#FFFFFF#000000##FFFFFF
##BA398F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465F91
Deuteranopia (green-blind)
#6D758C
Tritanopia (blue-blind)
#C6385F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba398f;
/* rgb */ color: rgb(186, 57, 143);
/* oklch */ color: oklch(56.0% 0.187 343.9);
Tailwind
colors: {
  custom: {
    50: '#d37ab0',
    500: '#ba398f',
    950: '#000000',
  },
}
SCSS
$custom: #ba398f;
$custom-light: #d37ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba398f",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 320,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56012,
    "c": 0.18689,
    "h": 343.9
  },
  "luminance": 0.15349
}

Semantic roles & 50–950 ramp

primary
#BA398F
secondary
#87C89D
accent
#DC7C4B
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA398F

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

Preview Lab → · Contrast checker → · Palette generator →

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