#BA339B#BA339B

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

Color values

HEX#BA339B
RGBrgb(186, 51, 155)
HSLhsl(314, 57%, 46%)
HSVhsv(314, 73%, 73%)
CMYKcmyk(0%, 72.6%, 16.7%, 27.1%)
CIE-LABlab(45.87, 63.40, -26.97)
CIE-LCHlch(45.87, 68.90, 336.95°)
OKLaboklab(56.01% 0.1881 -0.073)
OKLCHoklch(56.01% 0.202 338.8)
XYZxyz(27.3506, 15.1759, 32.4928)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA339B #33BA52
analogous
#9633BA #BA339B #BA3358
triadic
#BA339B #9BBA33 #339BBA
tetradic
#BA339B #BA9633 #33BA52 #3358BA
square
#BA339B #BA9633 #33BA52 #3358BA
split-complementary
#BA339B #58BA33 #33BA96
monochromatic
#5A194B #8A2673 #BA339B #D159B6 #DF89CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA339B#FFFFFF#000000##FFFFFF
##BA339B1.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5F9E
Deuteranopia (green-blind)
#667498
Tritanopia (blue-blind)
#C53963
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba339b;
/* rgb */ color: rgb(186, 51, 155);
/* oklch */ color: oklch(56.0% 0.202 338.8);
Tailwind
colors: {
  custom: {
    50: '#d377b8',
    500: '#ba339b',
    950: '#000000',
  },
}
SCSS
$custom: #ba339b;
$custom-light: #d377b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba339b",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 313.778,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.56009,
    "c": 0.20176,
    "h": 338.8
  },
  "luminance": 0.15173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA339B

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

Preview Lab → · Contrast checker → · Palette generator →

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