#BA337B#BA337B

#BA337B is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.6% C 0.183 H 352.3°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#BA337B
RGBrgb(186, 51, 123)
HSLhsl(328, 57%, 46%)
HSVhsv(328, 73%, 73%)
CMYKcmyk(0%, 72.6%, 33.9%, 27.1%)
CIE-LABlab(44.57, 59.30, -9.56)
CIE-LCHlch(44.57, 60.07, 350.84°)
OKLaboklab(54.64% 0.1815 -0.0246)
OKLCHoklch(54.64% 0.183 352.3)
XYZxyz(25.0101, 14.2397, 20.1665)
Luminance0.1424 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA337B #33BA72
analogous
#B633BA #BA337B #BA3338
triadic
#BA337B #7BBA33 #337BBA
tetradic
#BA337B #BAB633 #33BA72 #3338BA
square
#BA337B #BAB633 #33BA72 #3338BA
split-complementary
#BA337B #38BA33 #33BAB6
monochromatic
#5A193B #8A265B #BA337B #D15999 #DF89B7

Accessibility & contrast

On white

5.46
#BA337B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA337B
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA337B#FFFFFF#000000##FFFFFF
##BA337B1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5A7D
Deuteranopia (green-blind)
#717278
Tritanopia (blue-blind)
#C82852
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba337b;
/* rgb */ color: rgb(186, 51, 123);
/* oklch */ color: oklch(54.6% 0.183 352.3);
Tailwind
colors: {
  custom: {
    50: '#d376a1',
    500: '#ba337b',
    950: '#000000',
  },
}
SCSS
$custom: #ba337b;
$custom-light: #d376a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba337b",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 328,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54637,
    "c": 0.1832,
    "h": 352.3
  },
  "luminance": 0.14237
}

Semantic roles & 50–950 ramp

primary
#BA337B
secondary
#80C9A2
accent
#E08F48
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA337B

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

Preview Lab → · Contrast checker → · Palette generator →

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