#BA337D#BA337D

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

Color values

HEX#BA337D
RGBrgb(186, 51, 125)
HSLhsl(327, 57%, 46%)
HSVhsv(327, 73%, 73%)
CMYKcmyk(0%, 72.6%, 32.8%, 27.1%)
CIE-LABlab(44.65, 59.53, -10.68)
CIE-LCHlch(44.65, 60.49, 349.83°)
OKLaboklab(54.71% 0.1821 -0.0277)
OKLCHoklch(54.71% 0.184 351.4)
XYZxyz(25.1366, 14.2903, 20.8326)
Luminance0.1429 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA337D #33BA70
analogous
#B433BA #BA337D #BA333A
triadic
#BA337D #7DBA33 #337DBA
tetradic
#BA337D #BAB433 #33BA70 #333ABA
square
#BA337D #BAB433 #33BA70 #333ABA
split-complementary
#BA337D #3ABA33 #33BAB4
monochromatic
#5A193C #8A265D #BA337D #D1599B #DF89B8

Accessibility & contrast

On white

5.44
#BA337D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#BA337D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA337D
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA337D#FFFFFF#000000##FFFFFF
##BA337D1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5A7F
Deuteranopia (green-blind)
#70727A
Tritanopia (blue-blind)
#C82953
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba337d;
/* rgb */ color: rgb(186, 51, 125);
/* oklch */ color: oklch(54.7% 0.184 351.4);
Tailwind
colors: {
  custom: {
    50: '#d376a2',
    500: '#ba337d',
    950: '#000000',
  },
}
SCSS
$custom: #ba337d;
$custom-light: #d376a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba337d",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 327.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54713,
    "c": 0.18417,
    "h": 351.4
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#BA337D
secondary
#80C9A1
accent
#E08D48
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA337D

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

Preview Lab → · Contrast checker → · Palette generator →

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