#BA3A7E#BA3A7E

#BA3A7E is a mid, vivid pink. Relative luminance 0.150; OKLCH L 55.4% C 0.176 H 351.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA3A7E
RGBrgb(186, 58, 126)
HSLhsl(328, 52%, 48%)
HSVhsv(328, 69%, 73%)
CMYKcmyk(0%, 68.8%, 32.3%, 27.1%)
CIE-LABlab(45.60, 57.09, -9.86)
CIE-LCHlch(45.60, 57.94, 350.20°)
OKLaboklab(55.42% 0.1743 -0.0255)
OKLCHoklch(55.42% 0.176 351.7)
XYZxyz(25.5300, 14.9744, 21.2805)
Luminance0.1497 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3A7E #3ABA76
analogous
#B63ABA #BA3A7E #BA3A3E
triadic
#BA3A7E #7EBA3A #3A7EBA
tetradic
#BA3A7E #BAB63A #3ABA76 #3A3EBA
square
#BA3A7E #BAB63A #3ABA76 #3A3EBA
split-complementary
#BA3A7E #3EBA3A #3ABAB6
monochromatic
#5D1D3F #8B2B5E #BA3A7E #CE639C #DD92BA

Accessibility & contrast

On white

5.26
#BA3A7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA3A7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3A7E
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3A7E#FFFFFF#000000##FFFFFF
##BA3A7E1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5D80
Deuteranopia (green-blind)
#72747B
Tritanopia (blue-blind)
#C83257
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3a7e;
/* rgb */ color: rgb(186, 58, 126);
/* oklch */ color: oklch(55.4% 0.176 351.7);
Tailwind
colors: {
  custom: {
    50: '#d37aa3',
    500: '#ba3a7e',
    950: '#000000',
  },
}
SCSS
$custom: #ba3a7e;
$custom-light: #d37aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3a7e",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 328.125,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55424,
    "c": 0.17617,
    "h": 351.7
  },
  "luminance": 0.14972
}

Semantic roles & 50–950 ramp

primary
#BA3A7E
secondary
#88C8A6
accent
#DC8F4C
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA3A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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