#BA398C#BA398C

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

Color values

HEX#BA398C
RGBrgb(186, 57, 140)
HSLhsl(321, 53%, 48%)
HSVhsv(321, 69%, 73%)
CMYKcmyk(0%, 69.4%, 24.7%, 27.1%)
CIE-LABlab(45.99, 59.23, -17.77)
CIE-LCHlch(45.99, 61.83, 343.30°)
OKLaboklab(55.88% 0.179 -0.0472)
OKLCHoklch(55.88% 0.185 345.2)
XYZxyz(26.4475, 15.2615, 26.3588)
Luminance0.1526 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA398C #39BA67
analogous
#A739BA #BA398C #BA394C
triadic
#BA398C #8CBA39 #398CBA
tetradic
#BA398C #BAA739 #39BA67 #394CBA
square
#BA398C #BAA739 #39BA67 #394CBA
split-complementary
#BA398C #4CBA39 #39BAA7
monochromatic
#5C1C45 #8B2B69 #BA398C #CF61A8 #DD90C2

Accessibility & contrast

On white

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

On black

4.05
#BA398C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA398C#FFFFFF#000000##FFFFFF
##BA398C1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8E
Deuteranopia (green-blind)
#6E7589
Tritanopia (blue-blind)
#C6375D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba398c;
/* rgb */ color: rgb(186, 57, 140);
/* oklch */ color: oklch(55.9% 0.185 345.2);
Tailwind
colors: {
  custom: {
    50: '#d37aad',
    500: '#ba398c',
    950: '#000000',
  },
}
SCSS
$custom: #ba398c;
$custom-light: #d37aad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba398c",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 321.395,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.55884,
    "c": 0.18508,
    "h": 345.2
  },
  "luminance": 0.15259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA398C

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

Preview Lab → · Contrast checker → · Palette generator →

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