#BA339C#BA339C

#BA339C is a mid, highly saturated pink. Relative luminance 0.152; OKLCH L 56.1% C 0.202 H 338.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA339C
RGBrgb(186, 51, 156)
HSLhsl(313, 57%, 46%)
HSVhsv(313, 73%, 73%)
CMYKcmyk(0%, 72.6%, 16.1%, 27.1%)
CIE-LABlab(45.92, 63.54, -27.50)
CIE-LCHlch(45.92, 69.24, 336.60°)
OKLaboklab(56.06% 0.1882 -0.0745)
OKLCHoklch(56.06% 0.202 338.4)
XYZxyz(27.4349, 15.2096, 32.9369)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA339C #33BA51
analogous
#9533BA #BA339C #BA3359
triadic
#BA339C #9CBA33 #339CBA
tetradic
#BA339C #BA9533 #33BA51 #3359BA
square
#BA339C #BA9533 #33BA51 #3359BA
split-complementary
#BA339C #59BA33 #33BA95
monochromatic
#5A194B #8A2674 #BA339C #D159B7 #DF89CC

Accessibility & contrast

On white

5.20
#BA339C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA339C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA339C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA339C#FFFFFF#000000##FFFFFF
##BA339C1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395F9F
Deuteranopia (green-blind)
#667499
Tritanopia (blue-blind)
#C43964
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba339c;
/* rgb */ color: rgb(186, 51, 156);
/* oklch */ color: oklch(56.1% 0.202 338.4);
Tailwind
colors: {
  custom: {
    50: '#d377b9',
    500: '#ba339c',
    950: '#000000',
  },
}
SCSS
$custom: #ba339c;
$custom-light: #d377b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba339c",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 313.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56057,
    "c": 0.20243,
    "h": 338.4
  },
  "luminance": 0.15207
}

Semantic roles & 50–950 ramp

primary
#BA339C
secondary
#80C990
accent
#E06948
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA339C

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

Preview Lab → · Contrast checker → · Palette generator →

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