#BA339A#BA339A

#BA339A is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.0% C 0.201 H 339.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA339A
RGBrgb(186, 51, 154)
HSLhsl(314, 57%, 46%)
HSVhsv(314, 73%, 73%)
CMYKcmyk(0%, 72.6%, 17.2%, 27.1%)
CIE-LABlab(45.83, 63.26, -26.44)
CIE-LCHlch(45.83, 68.56, 337.31°)
OKLaboklab(55.96% 0.188 -0.0715)
OKLCHoklch(55.96% 0.201 339.2)
XYZxyz(27.2669, 15.1425, 32.0523)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA339A #33BA53
analogous
#9733BA #BA339A #BA3357
triadic
#BA339A #9ABA33 #339ABA
tetradic
#BA339A #BA9733 #33BA53 #3357BA
square
#BA339A #BA9733 #33BA53 #3357BA
split-complementary
#BA339A #57BA33 #33BA97
monochromatic
#5A194A #8A2672 #BA339A #D159B5 #DF89CA

Accessibility & contrast

On white

5.21
#BA339A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA339A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA339A
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA339A#FFFFFF#000000##FFFFFF
##BA339A1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba339a;
/* rgb */ color: rgb(186, 51, 154);
/* oklch */ color: oklch(56.0% 0.201 339.2);
Tailwind
colors: {
  custom: {
    50: '#d377b8',
    500: '#ba339a',
    950: '#000000',
  },
}
SCSS
$custom: #ba339a;
$custom-light: #d377b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba339a",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 314.222,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55961,
    "c": 0.2011,
    "h": 339.2
  },
  "luminance": 0.1514
}

Semantic roles & 50–950 ramp

primary
#BA339A
secondary
#80C991
accent
#E06C48
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA339A

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

Preview Lab → · Contrast checker → · Palette generator →

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