#BA337C#BA337C

#BA337C is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.7% C 0.184 H 351.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA337C
RGBrgb(186, 51, 124)
HSLhsl(328, 57%, 46%)
HSVhsv(328, 73%, 73%)
CMYKcmyk(0%, 72.6%, 33.3%, 27.1%)
CIE-LABlab(44.61, 59.42, -10.12)
CIE-LCHlch(44.61, 60.28, 350.33°)
OKLaboklab(54.68% 0.1818 -0.0262)
OKLCHoklch(54.68% 0.184 351.8)
XYZxyz(25.0730, 14.2649, 20.4979)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA337C #33BA71
analogous
#B533BA #BA337C #BA3338
triadic
#BA337C #7CBA33 #337CBA
tetradic
#BA337C #BAB533 #33BA71 #3338BA
square
#BA337C #BAB533 #33BA71 #3338BA
split-complementary
#BA337C #38BA33 #33BAB5
monochromatic
#5A193C #8A265C #BA337C #D1599A #DF89B7

Accessibility & contrast

On white

5.45
#BA337C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#BA337C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA337C
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA337C#FFFFFF#000000##FFFFFF
##BA337C1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5A7E
Deuteranopia (green-blind)
#707279
Tritanopia (blue-blind)
#C82953
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba337c;
/* rgb */ color: rgb(186, 51, 124);
/* oklch */ color: oklch(54.7% 0.184 351.8);
Tailwind
colors: {
  custom: {
    50: '#d376a2',
    500: '#ba337c',
    950: '#000000',
  },
}
SCSS
$custom: #ba337c;
$custom-light: #d376a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba337c",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 327.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.18368,
    "h": 351.8
  },
  "luminance": 0.14262
}

Semantic roles & 50–950 ramp

primary
#BA337C
secondary
#80C9A1
accent
#E08E48
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090F
muted
#837B7E

Preview Lab

Preview with #BA337C

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

Preview Lab → · Contrast checker → · Palette generator →

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