#BA3B7E#BA3B7E

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

Color values

HEX#BA3B7E
RGBrgb(186, 59, 126)
HSLhsl(328, 52%, 48%)
HSVhsv(328, 68%, 73%)
CMYKcmyk(0%, 68.3%, 32.3%, 27.1%)
CIE-LABlab(45.74, 56.71, -9.65)
CIE-LCHlch(45.74, 57.52, 350.34°)
OKLaboklab(55.53% 0.1731 -0.0249)
OKLCHoklch(55.53% 0.175 351.8)
XYZxyz(25.5809, 15.0762, 21.2975)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3B7E #3BBA77
analogous
#B63BBA #BA3B7E #BA3B3F
triadic
#BA3B7E #7EBA3B #3B7EBA
tetradic
#BA3B7E #BAB63B #3BBA77 #3B3FBA
square
#BA3B7E #BAB63B #3BBA77 #3B3FBA
split-complementary
#BA3B7E #3FBA3B #3BBAB6
monochromatic
#5D1E3F #8C2C5F #BA3B7E #CE649C #DD93BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA3B7E#FFFFFF#000000##FFFFFF
##BA3B7E1.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)
#4F5E80
Deuteranopia (green-blind)
#73757B
Tritanopia (blue-blind)
#C83357
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3b7e;
/* rgb */ color: rgb(186, 59, 126);
/* oklch */ color: oklch(55.5% 0.175 351.8);
Tailwind
colors: {
  custom: {
    50: '#d37aa3',
    500: '#ba3b7e',
    950: '#000000',
  },
}
SCSS
$custom: #ba3b7e;
$custom-light: #d37aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3b7e",
  "rgb": {
    "r": 186,
    "g": 59,
    "b": 126
  },
  "hsl": {
    "h": 328.346,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55526,
    "c": 0.17491,
    "h": 351.8
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#BA3B7E
secondary
#89C8A7
accent
#DB904D
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA3B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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