#BA339D#BA339D

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

Color values

HEX#BA339D
RGBrgb(186, 51, 157)
HSLhsl(313, 57%, 46%)
HSVhsv(313, 73%, 73%)
CMYKcmyk(0%, 72.6%, 15.6%, 27.1%)
CIE-LABlab(45.97, 63.68, -28.02)
CIE-LCHlch(45.97, 69.58, 336.25°)
OKLaboklab(56.11% 0.1883 -0.076)
OKLCHoklch(56.11% 0.203 338)
XYZxyz(27.5199, 15.2437, 33.3847)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA339D #33BA50
analogous
#9433BA #BA339D #BA335A
triadic
#BA339D #9DBA33 #339DBA
tetradic
#BA339D #BA9433 #33BA50 #335ABA
square
#BA339D #BA9433 #33BA50 #335ABA
split-complementary
#BA339D #5ABA33 #33BA94
monochromatic
#5A194C #8A2674 #BA339D #D159B8 #DF89CC

Accessibility & contrast

On white

5.19
#BA339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA339D
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA339D#FFFFFF#000000##FFFFFF
##BA339D1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3960A0
Deuteranopia (green-blind)
#66749A
Tritanopia (blue-blind)
#C43A64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba339d;
/* rgb */ color: rgb(186, 51, 157);
/* oklch */ color: oklch(56.1% 0.203 338.0);
Tailwind
colors: {
  custom: {
    50: '#d377ba',
    500: '#ba339d',
    950: '#000000',
  },
}
SCSS
$custom: #ba339d;
$custom-light: #d377ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba339d",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 312.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56105,
    "c": 0.20311,
    "h": 338
  },
  "luminance": 0.15241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA339D

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

Preview Lab → · Contrast checker → · Palette generator →

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