#BA3F7E#BA3F7E

#BA3F7E is a mid, vivid pink. Relative luminance 0.155; OKLCH L 56.0% C 0.170 H 352.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA3F7E
RGBrgb(186, 63, 126)
HSLhsl(329, 49%, 49%)
HSVhsv(329, 66%, 73%)
CMYKcmyk(0%, 66.1%, 32.3%, 27.1%)
CIE-LABlab(46.32, 55.11, -8.78)
CIE-LCHlch(46.32, 55.81, 350.94°)
OKLaboklab(55.95% 0.1681 -0.0226)
OKLCHoklch(55.95% 0.17 352.3)
XYZxyz(25.7944, 15.5033, 21.3686)
Luminance0.1550 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3F7E #3FBA7B
analogous
#B93FBA #BA3F7E #BA3F41
triadic
#BA3F7E #7EBA3F #3F7EBA
tetradic
#BA3F7E #BAB93F #3FBA7B #3F41BA
square
#BA3F7E #BAB93F #3FBA7B #3F41BA
split-complementary
#BA3F7E #41BA3F #3FBAB9
monochromatic
#5F2040 #8C305F #BA3F7E #CC6A9C #DC97BB

Accessibility & contrast

On white

5.12
#BA3F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA3F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3F7E
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3F7E#FFFFFF#000000##FFFFFF
##BA3F7E1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526080
Deuteranopia (green-blind)
#74767B
Tritanopia (blue-blind)
#C83759
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3f7e;
/* rgb */ color: rgb(186, 63, 126);
/* oklch */ color: oklch(56.0% 0.170 352.3);
Tailwind
colors: {
  custom: {
    50: '#d37ca3',
    500: '#ba3f7e',
    950: '#000000',
  },
}
SCSS
$custom: #ba3f7e;
$custom-light: #d37ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3f7e",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 329.268,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55952,
    "c": 0.16964,
    "h": 352.3
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

primary
#BA3F7E
secondary
#8DC8AA
accent
#D9924F
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#150A0F
muted
#837C7F

Preview Lab

Preview with #BA3F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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