#BA335B#BA335B

#BA335B is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.6% C 0.172 H 7.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#BA335B
RGBrgb(186, 51, 91)
HSLhsl(342, 57%, 46%)
HSVhsv(342, 73%, 73%)
CMYKcmyk(0%, 72.6%, 51.1%, 27.1%)
CIE-LABlab(43.60, 56.12, 8.82)
CIE-LCHlch(43.60, 56.81, 8.93°)
OKLaboklab(53.6% 0.171 0.0228)
OKLCHoklch(53.6% 0.172 7.6)
XYZxyz(23.3239, 13.5652, 11.2857)
Luminance0.1356 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA335B #33BA92
analogous
#BA339F #BA335B #BA4F33
triadic
#BA335B #5BBA33 #335BBA
tetradic
#BA335B #9FBA33 #33BA92 #4F33BA
square
#BA335B #9FBA33 #33BA92 #4F33BA
split-complementary
#BA335B #33BA4F #339FBA
monochromatic
#5A192C #8A2644 #BA335B #D1597D #DF89A2

Accessibility & contrast

On white

5.66
#BA335B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#BA335B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA335B
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA335B#FFFFFF#000000##FFFFFF
##BA335B1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54565C
Deuteranopia (green-blind)
#777158
Tritanopia (blue-blind)
#CB1544
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba335b;
/* rgb */ color: rgb(186, 51, 91);
/* oklch */ color: oklch(53.6% 0.172 7.6);
Tailwind
colors: {
  custom: {
    50: '#d57589',
    500: '#ba335b',
    950: '#000000',
  },
}
SCSS
$custom: #ba335b;
$custom-light: #d57589;
$custom-dark: #000000;
JSON
{
  "hex": "#ba335b",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 91
  },
  "hsl": {
    "h": 342.222,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53604,
    "c": 0.17246,
    "h": 7.6
  },
  "luminance": 0.13562
}

Semantic roles & 50–950 ramp

primary
#BA335B
secondary
#80C9B3
accent
#E0B348
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15090B
muted
#837B7C

Preview Lab

Preview with #BA335B

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

Preview Lab → · Contrast checker → · Palette generator →

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