#BA3F99#BA3F99

#BA3F99 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 57.1% C 0.186 H 340.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA3F99
RGBrgb(186, 63, 153)
HSLhsl(316, 49%, 49%)
HSVhsv(316, 66%, 73%)
CMYKcmyk(0%, 66.1%, 17.7%, 27.1%)
CIE-LABlab(47.36, 58.70, -23.47)
CIE-LCHlch(47.36, 63.22, 338.21°)
OKLaboklab(57.06% 0.1745 -0.0632)
OKLCHoklch(57.06% 0.186 340.1)
XYZxyz(27.7776, 16.2966, 31.8134)
Luminance0.1629 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3F99 #3FBA60
analogous
#9E3FBA #BA3F99 #BA3F5B
triadic
#BA3F99 #99BA3F #3F99BA
tetradic
#BA3F99 #BA9E3F #3FBA60 #3F5BBA
square
#BA3F99 #BA9E3F #3FBA60 #3F5BBA
split-complementary
#BA3F99 #5BBA3F #3FBA9E
monochromatic
#5F204E #8C3073 #BA3F99 #CC6AB2 #DC97CA

Accessibility & contrast

On white

4.93
#BA3F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA3F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3F99
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3F99#FFFFFF#000000##FFFFFF
##BA3F991.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46649C
Deuteranopia (green-blind)
#6C7796
Tritanopia (blue-blind)
#C54266
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3f99;
/* rgb */ color: rgb(186, 63, 153);
/* oklch */ color: oklch(57.1% 0.186 340.1);
Tailwind
colors: {
  custom: {
    50: '#d27db7',
    500: '#ba3f99',
    950: '#000000',
  },
}
SCSS
$custom: #ba3f99;
$custom-light: #d27db7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3f99",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 316.098,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57061,
    "c": 0.18557,
    "h": 340.1
  },
  "luminance": 0.16294
}

Semantic roles & 50–950 ramp

primary
#BA3F99
secondary
#8DC89D
accent
#D9744F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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