#BA336F#BA336F

#BA336F is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.2% C 0.178 H 357.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#BA336F
RGBrgb(186, 51, 111)
HSLhsl(333, 57%, 46%)
HSVhsv(333, 73%, 73%)
CMYKcmyk(0%, 72.6%, 40.3%, 27.1%)
CIE-LABlab(44.17, 58.00, -2.78)
CIE-LCHlch(44.17, 58.07, 357.26°)
OKLaboklab(54.21% 0.178 -0.0066)
OKLCHoklch(54.21% 0.178 357.9)
XYZxyz(24.3045, 13.9575, 16.4500)
Luminance0.1395 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA336F #33BA7E
analogous
#BA33B3 #BA336F #BA3A33
triadic
#BA336F #6FBA33 #336FBA
tetradic
#BA336F #B3BA33 #33BA7E #3A33BA
square
#BA336F #B3BA33 #33BA7E #3A33BA
split-complementary
#BA336F #33BA3A #33B3BA
monochromatic
#5A1936 #8A2652 #BA336F #D1598E #DF89AF

Accessibility & contrast

On white

5.54
#BA336F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#BA336F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA336F
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA336F#FFFFFF#000000##FFFFFF
##BA336F1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5871
Deuteranopia (green-blind)
#73726C
Tritanopia (blue-blind)
#C9224D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba336f;
/* rgb */ color: rgb(186, 51, 111);
/* oklch */ color: oklch(54.2% 0.178 357.9);
Tailwind
colors: {
  custom: {
    50: '#d47698',
    500: '#ba336f',
    950: '#000000',
  },
}
SCSS
$custom: #ba336f;
$custom-light: #d47698;
$custom-dark: #000000;
JSON
{
  "hex": "#ba336f",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 333.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5421,
    "c": 0.17809,
    "h": 357.9
  },
  "luminance": 0.13954
}

Semantic roles & 50–950 ramp

primary
#BA336F
secondary
#80C9A8
accent
#E09C48
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA336F

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

Preview Lab → · Contrast checker → · Palette generator →

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