#BA339F#BA339F

#BA339F is a mid, highly saturated pink. Relative luminance 0.153; OKLCH L 56.2% C 0.204 H 337.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA339F
RGBrgb(186, 51, 159)
HSLhsl(312, 57%, 46%)
HSVhsv(312, 73%, 73%)
CMYKcmyk(0%, 72.6%, 14.5%, 27.1%)
CIE-LABlab(46.06, 63.97, -29.07)
CIE-LCHlch(46.06, 70.27, 335.56°)
OKLaboklab(56.2% 0.1886 -0.079)
OKLCHoklch(56.2% 0.204 337.3)
XYZxyz(27.6921, 15.3125, 34.2913)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA339F #33BA4E
analogous
#9233BA #BA339F #BA335C
triadic
#BA339F #9FBA33 #339FBA
tetradic
#BA339F #BA9233 #33BA4E #335CBA
square
#BA339F #BA9233 #33BA4E #335CBA
split-complementary
#BA339F #5CBA33 #33BA92
monochromatic
#5A194D #8A2676 #BA339F #D159B9 #DF89CD

Accessibility & contrast

On white

5.17
#BA339F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA339F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA339F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA339F#FFFFFF#000000##FFFFFF
##BA339F1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3760A2
Deuteranopia (green-blind)
#65749C
Tritanopia (blue-blind)
#C43B65
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba339f;
/* rgb */ color: rgb(186, 51, 159);
/* oklch */ color: oklch(56.2% 0.204 337.3);
Tailwind
colors: {
  custom: {
    50: '#d377bb',
    500: '#ba339f',
    950: '#000000',
  },
}
SCSS
$custom: #ba339f;
$custom-light: #d377bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba339f",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 312,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.20447,
    "h": 337.3
  },
  "luminance": 0.1531
}

Semantic roles & 50–950 ramp

primary
#BA339F
secondary
#80C98F
accent
#E06648
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA339F

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

Preview Lab → · Contrast checker → · Palette generator →

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