#BA3398#BA3398

#BA3398 is a mid, vivid pink. Relative luminance 0.151; OKLCH L 55.9% C 0.200 H 339.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA3398
RGBrgb(186, 51, 152)
HSLhsl(315, 57%, 46%)
HSVhsv(315, 73%, 73%)
CMYKcmyk(0%, 72.6%, 18.3%, 27.1%)
CIE-LABlab(45.74, 62.98, -25.38)
CIE-LCHlch(45.74, 67.90, 338.05°)
OKLaboklab(55.87% 0.1877 -0.0685)
OKLCHoklch(55.87% 0.2 339.9)
XYZxyz(27.1018, 15.0764, 31.1824)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3398 #33BA55
analogous
#9933BA #BA3398 #BA3355
triadic
#BA3398 #98BA33 #3398BA
tetradic
#BA3398 #BA9933 #33BA55 #3355BA
square
#BA3398 #BA9933 #33BA55 #3355BA
split-complementary
#BA3398 #55BA33 #33BA99
monochromatic
#5A194A #8A2671 #BA3398 #D159B3 #DF89C9

Accessibility & contrast

On white

5.23
#BA3398 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA3398 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3398
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3398#FFFFFF#000000##FFFFFF
##BA33981.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5F9B
Deuteranopia (green-blind)
#687495
Tritanopia (blue-blind)
#C53761
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3398;
/* rgb */ color: rgb(186, 51, 152);
/* oklch */ color: oklch(55.9% 0.200 339.9);
Tailwind
colors: {
  custom: {
    50: '#d377b6',
    500: '#ba3398',
    950: '#000000',
  },
}
SCSS
$custom: #ba3398;
$custom-light: #d377b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3398",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 315.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55866,
    "c": 0.19978,
    "h": 339.9
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#BA3398
secondary
#80C992
accent
#E06E48
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3398

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

Preview Lab → · Contrast checker → · Palette generator →

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