#BA336C#BA336C

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

Color values

HEX#BA336C
RGBrgb(186, 51, 108)
HSLhsl(335, 57%, 46%)
HSVhsv(335, 73%, 73%)
CMYKcmyk(0%, 72.6%, 41.9%, 27.1%)
CIE-LABlab(44.08, 57.69, -1.06)
CIE-LCHlch(44.08, 57.70, 358.95°)
OKLaboklab(54.11% 0.177 -0.0021)
OKLCHoklch(54.11% 0.177 359.3)
XYZxyz(24.1421, 13.8925, 15.5947)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA336C #33BA81
analogous
#BA33B0 #BA336C #BA3E33
triadic
#BA336C #6CBA33 #336CBA
tetradic
#BA336C #B0BA33 #33BA81 #3E33BA
square
#BA336C #B0BA33 #33BA81 #3E33BA
split-complementary
#BA336C #33BA3E #33B0BA
monochromatic
#5A1934 #8A2650 #BA336C #D1598C #DF89AD

Accessibility & contrast

On white

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

On black

3.78
#BA336C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA336C#FFFFFF#000000##FFFFFF
##BA336C1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F586D
Deuteranopia (green-blind)
#747269
Tritanopia (blue-blind)
#C9204B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba336c;
/* rgb */ color: rgb(186, 51, 108);
/* oklch */ color: oklch(54.1% 0.177 359.3);
Tailwind
colors: {
  custom: {
    50: '#d47696',
    500: '#ba336c',
    950: '#000000',
  },
}
SCSS
$custom: #ba336c;
$custom-light: #d47696;
$custom-dark: #000000;
JSON
{
  "hex": "#ba336c",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 334.667,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5411,
    "c": 0.177,
    "h": 359.3
  },
  "luminance": 0.13889
}

Semantic roles & 50–950 ramp

primary
#BA336C
secondary
#80C9AA
accent
#E0A048
background
#FDF7F9
surface
#FBEEF1
border
#D4C9CB
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA336C

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

Preview Lab → · Contrast checker → · Palette generator →

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