#BA398D#BA398D

#BA398D is a mid, vivid pink. Relative luminance 0.153; OKLCH L 55.9% C 0.186 H 344.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#BA398D
RGBrgb(186, 57, 141)
HSLhsl(321, 53%, 48%)
HSVhsv(321, 69%, 73%)
CMYKcmyk(0%, 69.4%, 24.2%, 27.1%)
CIE-LABlab(46.03, 59.36, -18.31)
CIE-LCHlch(46.03, 62.12, 342.86°)
OKLaboklab(55.93% 0.1792 -0.0487)
OKLCHoklch(55.93% 0.186 344.8)
XYZxyz(26.5216, 15.2912, 26.7489)
Luminance0.1529 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA398D #39BA66
analogous
#A639BA #BA398D #BA394D
triadic
#BA398D #8DBA39 #398DBA
tetradic
#BA398D #BAA639 #39BA66 #394DBA
square
#BA398D #BAA639 #39BA66 #394DBA
split-complementary
#BA398D #4DBA39 #39BAA6
monochromatic
#5C1C46 #8B2B69 #BA398D #CF61A9 #DD90C2

Accessibility & contrast

On white

5.18
#BA398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA398D
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA398D#FFFFFF#000000##FFFFFF
##BA398D1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F8F
Deuteranopia (green-blind)
#6E758A
Tritanopia (blue-blind)
#C6385E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba398d;
/* rgb */ color: rgb(186, 57, 141);
/* oklch */ color: oklch(55.9% 0.186 344.8);
Tailwind
colors: {
  custom: {
    50: '#d37aae',
    500: '#ba398d',
    950: '#000000',
  },
}
SCSS
$custom: #ba398d;
$custom-light: #d37aae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba398d",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 320.93,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55926,
    "c": 0.18568,
    "h": 344.8
  },
  "luminance": 0.15288
}

Semantic roles & 50–950 ramp

primary
#BA398D
secondary
#87C89E
accent
#DC7E4B
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA398D

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

Preview Lab → · Contrast checker → · Palette generator →

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