#BA336B#BA336B

#BA336B is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.1% C 0.177 H 359.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA336B
RGBrgb(186, 51, 107)
HSLhsl(335, 57%, 46%)
HSVhsv(335, 73%, 73%)
CMYKcmyk(0%, 72.6%, 42.5%, 27.1%)
CIE-LABlab(44.05, 57.59, -0.48)
CIE-LCHlch(44.05, 57.60, 359.52°)
OKLaboklab(54.08% 0.1767 -0.0006)
OKLCHoklch(54.08% 0.177 359.8)
XYZxyz(24.0891, 13.8713, 15.3160)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA336B #33BA82
analogous
#BA33AF #BA336B #BA3F33
triadic
#BA336B #6BBA33 #336BBA
tetradic
#BA336B #AFBA33 #33BA82 #3F33BA
square
#BA336B #AFBA33 #33BA82 #3F33BA
split-complementary
#BA336B #33BA3F #33AFBA
monochromatic
#5A1934 #8A264F #BA336B #D1598B #DF89AC

Accessibility & contrast

On white

5.56
#BA336B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#BA336B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA336B
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA336B#FFFFFF#000000##FFFFFF
##BA336B1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50586C
Deuteranopia (green-blind)
#747268
Tritanopia (blue-blind)
#CA1F4B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba336b;
/* rgb */ color: rgb(186, 51, 107);
/* oklch */ color: oklch(54.1% 0.177 359.8);
Tailwind
colors: {
  custom: {
    50: '#d47695',
    500: '#ba336b',
    950: '#000000',
  },
}
SCSS
$custom: #ba336b;
$custom-light: #d47695;
$custom-dark: #000000;
JSON
{
  "hex": "#ba336b",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 335.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54078,
    "c": 0.17666,
    "h": 359.8
  },
  "luminance": 0.13868
}

Semantic roles & 50–950 ramp

primary
#BA336B
secondary
#80C9AB
accent
#E0A148
background
#FDF7F9
surface
#FBEEF1
border
#D4C9CB
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA336B

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

Preview Lab → · Contrast checker → · Palette generator →

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