#BA3F7B#BA3F7B

#BA3F7B is a mid, vivid pink. Relative luminance 0.154; OKLCH L 55.8% C 0.168 H 353.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA3F7B
RGBrgb(186, 63, 123)
HSLhsl(331, 49%, 49%)
HSVhsv(331, 66%, 73%)
CMYKcmyk(0%, 66.1%, 33.9%, 27.1%)
CIE-LABlab(46.21, 54.76, -7.11)
CIE-LCHlch(46.21, 55.22, 352.60°)
OKLaboklab(55.84% 0.1673 -0.0181)
OKLCHoklch(55.84% 0.168 353.8)
XYZxyz(25.6038, 15.4270, 20.3644)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3F7B #3FBA7E
analogous
#BA3FB9 #BA3F7B #BA413F
triadic
#BA3F7B #7BBA3F #3F7BBA
tetradic
#BA3F7B #B9BA3F #3FBA7E #413FBA
square
#BA3F7B #B9BA3F #3FBA7E #413FBA
split-complementary
#BA3F7B #3FBA41 #3FB9BA
monochromatic
#5F203F #8C305D #BA3F7B #CC6A9A #DC97B9

Accessibility & contrast

On white

5.14
#BA3F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA3F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3F7B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3F7B#FFFFFF#000000##FFFFFF
##BA3F7B1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535F7D
Deuteranopia (green-blind)
#757678
Tritanopia (blue-blind)
#C83658
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3f7b;
/* rgb */ color: rgb(186, 63, 123);
/* oklch */ color: oklch(55.8% 0.168 353.8);
Tailwind
colors: {
  custom: {
    50: '#d37ca1',
    500: '#ba3f7b',
    950: '#000000',
  },
}
SCSS
$custom: #ba3f7b;
$custom-light: #d37ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3f7b",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 123
  },
  "hsl": {
    "h": 330.732,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55843,
    "c": 0.16823,
    "h": 353.8
  },
  "luminance": 0.15424
}

Semantic roles & 50–950 ramp

primary
#BA3F7B
secondary
#8DC8AB
accent
#D9964F
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#150A0E
muted
#837C7E

Preview Lab

Preview with #BA3F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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