#BA3399#BA3399

#BA3399 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 55.9% C 0.200 H 339.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA3399
RGBrgb(186, 51, 153)
HSLhsl(315, 57%, 46%)
HSVhsv(315, 73%, 73%)
CMYKcmyk(0%, 72.6%, 17.7%, 27.1%)
CIE-LABlab(45.78, 63.12, -25.91)
CIE-LCHlch(45.78, 68.23, 337.68°)
OKLaboklab(55.91% 0.1878 -0.07)
OKLCHoklch(55.91% 0.2 339.6)
XYZxyz(27.1840, 15.1093, 31.6155)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3399 #33BA54
analogous
#9833BA #BA3399 #BA3356
triadic
#BA3399 #99BA33 #3399BA
tetradic
#BA3399 #BA9833 #33BA54 #3356BA
square
#BA3399 #BA9833 #33BA54 #3356BA
split-complementary
#BA3399 #56BA33 #33BA98
monochromatic
#5A194A #8A2671 #BA3399 #D159B4 #DF89CA

Accessibility & contrast

On white

5.22
#BA3399 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA3399 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3399
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3399#FFFFFF#000000##FFFFFF
##BA33991.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5F9C
Deuteranopia (green-blind)
#677496
Tritanopia (blue-blind)
#C53862
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3399;
/* rgb */ color: rgb(186, 51, 153);
/* oklch */ color: oklch(55.9% 0.200 339.6);
Tailwind
colors: {
  custom: {
    50: '#d377b7',
    500: '#ba3399',
    950: '#000000',
  },
}
SCSS
$custom: #ba3399;
$custom-light: #d377b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3399",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 314.667,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55913,
    "c": 0.20044,
    "h": 339.6
  },
  "luminance": 0.15107
}

Semantic roles & 50–950 ramp

primary
#BA3399
secondary
#80C992
accent
#E06D48
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3399

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

Preview Lab → · Contrast checker → · Palette generator →

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