#BA3B97#BA3B97

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

Color values

HEX#BA3B97
RGBrgb(186, 59, 151)
HSLhsl(317, 52%, 48%)
HSVhsv(317, 68%, 73%)
CMYKcmyk(0%, 68.3%, 18.8%, 27.1%)
CIE-LABlab(46.72, 59.97, -23.27)
CIE-LCHlch(46.72, 64.33, 338.79°)
OKLaboklab(56.56% 0.1788 -0.0626)
OKLCHoklch(56.56% 0.189 340.7)
XYZxyz(27.4003, 15.8040, 30.8796)
Luminance0.1580 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3B97 #3BBA5E
analogous
#9D3BBA #BA3B97 #BA3B58
triadic
#BA3B97 #97BA3B #3B97BA
tetradic
#BA3B97 #BA9D3B #3BBA5E #3B58BA
square
#BA3B97 #BA9D3B #3BBA5E #3B58BA
split-complementary
#BA3B97 #58BA3B #3BBA9D
monochromatic
#5D1E4C #8C2C71 #BA3B97 #CE64B1 #DD93C8

Accessibility & contrast

On white

5.05
#BA3B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA3B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3B97
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3B97#FFFFFF#000000##FFFFFF
##BA3B971.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44629A
Deuteranopia (green-blind)
#6B7694
Tritanopia (blue-blind)
#C53E64
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3b97;
/* rgb */ color: rgb(186, 59, 151);
/* oklch */ color: oklch(56.6% 0.189 340.7);
Tailwind
colors: {
  custom: {
    50: '#d27bb5',
    500: '#ba3b97',
    950: '#000000',
  },
}
SCSS
$custom: #ba3b97;
$custom-light: #d27bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3b97",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 316.535,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56563,
    "c": 0.18947,
    "h": 340.7
  },
  "luminance": 0.15801
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA3B97

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

Preview Lab → · Contrast checker → · Palette generator →

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