#BA3B98#BA3B98

#BA3B98 is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.6% C 0.190 H 340.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA3B98
RGBrgb(186, 59, 152)
HSLhsl(316, 52%, 48%)
HSVhsv(316, 68%, 73%)
CMYKcmyk(0%, 68.3%, 18.3%, 27.1%)
CIE-LABlab(46.76, 60.11, -23.80)
CIE-LCHlch(46.76, 64.65, 338.40°)
OKLaboklab(56.61% 0.179 -0.0641)
OKLCHoklch(56.61% 0.19 340.3)
XYZxyz(27.4819, 15.8366, 31.3091)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3B98 #3BBA5D
analogous
#9C3BBA #BA3B98 #BA3B58
triadic
#BA3B98 #98BA3B #3B98BA
tetradic
#BA3B98 #BA9C3B #3BBA5D #3B58BA
square
#BA3B98 #BA9C3B #3BBA5D #3B58BA
split-complementary
#BA3B98 #58BA3B #3BBA9C
monochromatic
#5D1E4C #8C2C72 #BA3B98 #CE64B2 #DD93C9

Accessibility & contrast

On white

5.04
#BA3B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA3B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3B98
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3B98#FFFFFF#000000##FFFFFF
##BA3B981.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43629B
Deuteranopia (green-blind)
#6B7695
Tritanopia (blue-blind)
#C53E64
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3b98;
/* rgb */ color: rgb(186, 59, 152);
/* oklch */ color: oklch(56.6% 0.190 340.3);
Tailwind
colors: {
  custom: {
    50: '#d27bb6',
    500: '#ba3b98',
    950: '#000000',
  },
}
SCSS
$custom: #ba3b98;
$custom-light: #d27bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3b98",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 152
  },
  "hsl": {
    "h": 316.063,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.19013,
    "h": 340.3
  },
  "luminance": 0.15834
}

Semantic roles & 50–950 ramp

primary
#BA3B98
secondary
#89C89A
accent
#DB734D
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3B98

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

Preview Lab → · Contrast checker → · Palette generator →

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