#BA335F#BA335F

#BA335F is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.7% C 0.173 H 5.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#BA335F
RGBrgb(186, 51, 95)
HSLhsl(340, 57%, 46%)
HSVhsv(340, 73%, 73%)
CMYKcmyk(0%, 72.6%, 48.9%, 27.1%)
CIE-LABlab(43.71, 56.47, 6.47)
CIE-LCHlch(43.71, 56.84, 6.54°)
OKLaboklab(53.71% 0.1724 0.017)
OKLCHoklch(53.71% 0.173 5.6)
XYZxyz(23.5011, 13.6361, 12.2188)
Luminance0.1363 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA335F #33BA8E
analogous
#BA33A3 #BA335F #BA4A33
triadic
#BA335F #5FBA33 #335FBA
tetradic
#BA335F #A3BA33 #33BA8E #4A33BA
square
#BA335F #A3BA33 #33BA8E #4A33BA
split-complementary
#BA335F #33BA4A #33A3BA
monochromatic
#5A192E #8A2646 #BA335F #D15980 #DF89A5

Accessibility & contrast

On white

5.64
#BA335F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#BA335F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA335F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA335F#FFFFFF#000000##FFFFFF
##BA335F1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535660
Deuteranopia (green-blind)
#76715C
Tritanopia (blue-blind)
#CA1845
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba335f;
/* rgb */ color: rgb(186, 51, 95);
/* oklch */ color: oklch(53.7% 0.173 5.6);
Tailwind
colors: {
  custom: {
    50: '#d4758c',
    500: '#ba335f',
    950: '#000000',
  },
}
SCSS
$custom: #ba335f;
$custom-light: #d4758c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba335f",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 340.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53714,
    "c": 0.17328,
    "h": 5.6
  },
  "luminance": 0.13633
}

Semantic roles & 50–950 ramp

primary
#BA335F
secondary
#80C9B1
accent
#E0AE48
background
#FDF7F8
surface
#FBEEF0
border
#D4C9CB
text
#15090C
muted
#837B7D

Preview Lab

Preview with #BA335F

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

Preview Lab → · Contrast checker → · Palette generator →

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