#BA339E#BA339E

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

Color values

HEX#BA339E
RGBrgb(186, 51, 158)
HSLhsl(312, 57%, 46%)
HSVhsv(312, 73%, 73%)
CMYKcmyk(0%, 72.6%, 15.1%, 27.1%)
CIE-LABlab(46.01, 63.83, -28.55)
CIE-LCHlch(46.01, 69.92, 335.90°)
OKLaboklab(56.15% 0.1885 -0.0775)
OKLCHoklch(56.15% 0.204 337.6)
XYZxyz(27.6056, 15.2779, 33.8362)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA339E #33BA4F
analogous
#9333BA #BA339E #BA335B
triadic
#BA339E #9EBA33 #339EBA
tetradic
#BA339E #BA9333 #33BA4F #335BBA
square
#BA339E #BA9333 #33BA4F #335BBA
split-complementary
#BA339E #5BBA33 #33BA93
monochromatic
#5A194C #8A2675 #BA339E #D159B8 #DF89CD

Accessibility & contrast

On white

5.18
#BA339E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA339E
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA339E#FFFFFF#000000##FFFFFF
##BA339E1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3860A1
Deuteranopia (green-blind)
#65749B
Tritanopia (blue-blind)
#C43A65
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba339e;
/* rgb */ color: rgb(186, 51, 158);
/* oklch */ color: oklch(56.2% 0.204 337.6);
Tailwind
colors: {
  custom: {
    50: '#d377bb',
    500: '#ba339e',
    950: '#000000',
  },
}
SCSS
$custom: #ba339e;
$custom-light: #d377bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba339e",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 312.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56154,
    "c": 0.20378,
    "h": 337.6
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA339E

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

Preview Lab → · Contrast checker → · Palette generator →

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