#BA3498#BA3498

#BA3498 is a mid, vivid pink. Relative luminance 0.152; OKLCH L 56.0% C 0.199 H 340.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA3498
RGBrgb(186, 52, 152)
HSLhsl(315, 56%, 47%)
HSVhsv(315, 72%, 73%)
CMYKcmyk(0%, 72%, 18.3%, 27.1%)
CIE-LABlab(45.86, 62.64, -25.20)
CIE-LCHlch(45.86, 67.52, 338.09°)
OKLaboklab(55.95% 0.1866 -0.068)
OKLCHoklch(55.95% 0.199 340)
XYZxyz(27.1459, 15.1647, 31.1971)
Luminance0.1516 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3498 #34BA56
analogous
#9934BA #BA3498 #BA3455
triadic
#BA3498 #98BA34 #3498BA
tetradic
#BA3498 #BA9934 #34BA56 #3455BA
square
#BA3498 #BA9934 #34BA56 #3455BA
split-complementary
#BA3498 #55BA34 #34BA99
monochromatic
#5A194A #8A2771 #BA3498 #D15AB3 #DE8AC9

Accessibility & contrast

On white

5.21
#BA3498 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA3498 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3498
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3498#FFFFFF#000000##FFFFFF
##BA34981.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5F9B
Deuteranopia (green-blind)
#687495
Tritanopia (blue-blind)
#C53862
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3498;
/* rgb */ color: rgb(186, 52, 152);
/* oklch */ color: oklch(56.0% 0.199 340.0);
Tailwind
colors: {
  custom: {
    50: '#d378b6',
    500: '#ba3498',
    950: '#000000',
  },
}
SCSS
$custom: #ba3498;
$custom-light: #d378b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3498",
  "rgb": {
    "r": 186,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 315.224,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.19864,
    "h": 340
  },
  "luminance": 0.15162
}

Semantic roles & 50–950 ramp

primary
#BA3498
secondary
#81C893
accent
#E06F48
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3498

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

Preview Lab → · Contrast checker → · Palette generator →

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