#BA336D#BA336D

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

Color values

HEX#BA336D
RGBrgb(186, 51, 109)
HSLhsl(334, 57%, 46%)
HSVhsv(334, 73%, 73%)
CMYKcmyk(0%, 72.6%, 41.4%, 27.1%)
CIE-LABlab(44.11, 57.79, -1.63)
CIE-LCHlch(44.11, 57.82, 358.38°)
OKLaboklab(54.14% 0.1773 -0.0036)
OKLCHoklch(54.14% 0.177 358.8)
XYZxyz(24.1956, 13.9139, 15.8766)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA336D #33BA80
analogous
#BA33B1 #BA336D #BA3D33
triadic
#BA336D #6DBA33 #336DBA
tetradic
#BA336D #B1BA33 #33BA80 #3D33BA
square
#BA336D #B1BA33 #33BA80 #3D33BA
split-complementary
#BA336D #33BA3D #33B1BA
monochromatic
#5A1935 #8A2651 #BA336D #D1598D #DF89AE

Accessibility & contrast

On white

5.55
#BA336D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA336D
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA336D#FFFFFF#000000##FFFFFF
##BA336D1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F586E
Deuteranopia (green-blind)
#74726A
Tritanopia (blue-blind)
#C9214C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba336d;
/* rgb */ color: rgb(186, 51, 109);
/* oklch */ color: oklch(54.1% 0.177 358.8);
Tailwind
colors: {
  custom: {
    50: '#d47696',
    500: '#ba336d',
    950: '#000000',
  },
}
SCSS
$custom: #ba336d;
$custom-light: #d47696;
$custom-dark: #000000;
JSON
{
  "hex": "#ba336d",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 334.222,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54143,
    "c": 0.17736,
    "h": 358.8
  },
  "luminance": 0.13911
}

Semantic roles & 50–950 ramp

primary
#BA336D
secondary
#80C9A9
accent
#E09F48
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA336D

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

Preview Lab → · Contrast checker → · Palette generator →

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