#BA306B#BA306B

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

Color values

HEX#BA306B
RGBrgb(186, 48, 107)
HSLhsl(334, 59%, 46%)
HSVhsv(334, 74%, 73%)
CMYKcmyk(0%, 74.2%, 42.5%, 27.1%)
CIE-LABlab(43.68, 58.62, -1.02)
CIE-LCHlch(43.68, 58.63, 359.00°)
OKLaboklab(53.81% 0.18 -0.002)
OKLCHoklch(53.81% 0.18 359.4)
XYZxyz(23.9623, 13.6176, 15.2737)
Luminance0.1361 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA306B #30BA7F
analogous
#BA30B0 #BA306B #BA3A30
triadic
#BA306B #6BBA30 #306BBA
tetradic
#BA306B #B0BA30 #30BA7F #3A30BA
square
#BA306B #B0BA30 #30BA7F #3A30BA
split-complementary
#BA306B #30BA3A #30B0BA
monochromatic
#591733 #89234F #BA306B #D3548A #DF85AC

Accessibility & contrast

On white

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

On black

3.72
#BA306B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA306B#FFFFFF#000000##FFFFFF
##BA306B1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E566C
Deuteranopia (green-blind)
#737168
Tritanopia (blue-blind)
#CA1B49
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #ba306b;
/* rgb */ color: rgb(186, 48, 107);
/* oklch */ color: oklch(53.8% 0.180 359.4);
Tailwind
colors: {
  custom: {
    50: '#d47495',
    500: '#ba306b',
    950: '#000000',
  },
}
SCSS
$custom: #ba306b;
$custom-light: #d47495;
$custom-dark: #000000;
JSON
{
  "hex": "#ba306b",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 107
  },
  "hsl": {
    "h": 334.348,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53807,
    "c": 0.17996,
    "h": 359.4
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#BA306B
secondary
#7DC9A8
accent
#E29F46
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA306B

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

Preview Lab → · Contrast checker → · Palette generator →

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