#BA3F8A#BA3F8A

#BA3F8A is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.4% C 0.176 H 346.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA3F8A
RGBrgb(186, 63, 138)
HSLhsl(323, 49%, 49%)
HSVhsv(323, 66%, 73%)
CMYKcmyk(0%, 66.1%, 25.8%, 27.1%)
CIE-LABlab(46.75, 56.63, -15.40)
CIE-LCHlch(46.75, 58.69, 344.79°)
OKLaboklab(56.42% 0.1713 -0.0407)
OKLCHoklch(56.42% 0.176 346.6)
XYZxyz(26.6157, 15.8318, 25.6940)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3F8A #3FBA6F
analogous
#AD3FBA #BA3F8A #BA3F4C
triadic
#BA3F8A #8ABA3F #3F8ABA
tetradic
#BA3F8A #BAAD3F #3FBA6F #3F4CBA
square
#BA3F8A #BAAD3F #3FBA6F #3F4CBA
split-complementary
#BA3F8A #4CBA3F #3FBAAD
monochromatic
#5F2046 #8C3068 #BA3F8A #CC6AA6 #DC97C1

Accessibility & contrast

On white

5.04
#BA3F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA3F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3F8A
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3F8A#FFFFFF#000000##FFFFFF
##BA3F8A1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D618C
Deuteranopia (green-blind)
#717787
Tritanopia (blue-blind)
#C63C5F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3f8a;
/* rgb */ color: rgb(186, 63, 138);
/* oklch */ color: oklch(56.4% 0.176 346.6);
Tailwind
colors: {
  custom: {
    50: '#d27cac',
    500: '#ba3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #ba3f8a;
$custom-light: #d27cac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3f8a",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 323.415,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56417,
    "c": 0.17608,
    "h": 346.6
  },
  "luminance": 0.15829
}

Semantic roles & 50–950 ramp

primary
#BA3F8A
secondary
#8DC8A4
accent
#D9854F
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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