#BA3898#BA3898

#BA3898 is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.3% C 0.194 H 340.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA3898
RGBrgb(186, 56, 152)
HSLhsl(316, 54%, 47%)
HSVhsv(316, 70%, 73%)
CMYKcmyk(0%, 69.9%, 18.3%, 27.1%)
CIE-LABlab(46.36, 61.23, -24.42)
CIE-LCHlch(46.36, 65.92, 338.26°)
OKLaboklab(56.32% 0.1824 -0.0658)
OKLCHoklch(56.32% 0.194 340.1)
XYZxyz(27.3321, 15.5371, 31.2592)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3898 #38BA5A
analogous
#9B38BA #BA3898 #BA3857
triadic
#BA3898 #98BA38 #3898BA
tetradic
#BA3898 #BA9B38 #38BA5A #3857BA
square
#BA3898 #BA9B38 #38BA5A #3857BA
split-complementary
#BA3898 #57BA38 #38BA9B
monochromatic
#5C1C4B #8B2A72 #BA3898 #CF60B2 #DD8FC9

Accessibility & contrast

On white

5.11
#BA3898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA3898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3898
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3898#FFFFFF#000000##FFFFFF
##BA38981.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41619B
Deuteranopia (green-blind)
#6A7595
Tritanopia (blue-blind)
#C53C63
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3898;
/* rgb */ color: rgb(186, 56, 152);
/* oklch */ color: oklch(56.3% 0.194 340.1);
Tailwind
colors: {
  custom: {
    50: '#d279b6',
    500: '#ba3898',
    950: '#000000',
  },
}
SCSS
$custom: #ba3898;
$custom-light: #d279b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3898",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 315.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56318,
    "c": 0.19388,
    "h": 340.1
  },
  "luminance": 0.15534
}

Semantic roles & 50–950 ramp

primary
#BA3898
secondary
#86C897
accent
#DD714B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3898

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

Preview Lab → · Contrast checker → · Palette generator →

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