#BA307D#BA307D

#BA307D is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.4% C 0.188 H 351.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA307D
RGBrgb(186, 48, 125)
HSLhsl(327, 59%, 46%)
HSVhsv(327, 74%, 73%)
CMYKcmyk(0%, 74.2%, 32.8%, 27.1%)
CIE-LABlab(44.29, 60.55, -11.23)
CIE-LCHlch(44.29, 61.58, 349.50°)
OKLaboklab(54.45% 0.1853 -0.0291)
OKLCHoklch(54.45% 0.188 351.1)
XYZxyz(25.0097, 14.0366, 20.7903)
Luminance0.1403 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA307D #30BA6D
analogous
#B230BA #BA307D #BA3038
triadic
#BA307D #7DBA30 #307DBA
tetradic
#BA307D #BAB230 #30BA6D #3038BA
square
#BA307D #BAB230 #30BA6D #3038BA
split-complementary
#BA307D #38BA30 #30BAB2
monochromatic
#59173C #89235C #BA307D #D3549B #DF85B7

Accessibility & contrast

On white

5.52
#BA307D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#BA307D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA307D
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA307D#FFFFFF#000000##FFFFFF
##BA307D1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47597F
Deuteranopia (green-blind)
#6F727A
Tritanopia (blue-blind)
#C82652
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba307d;
/* rgb */ color: rgb(186, 48, 125);
/* oklch */ color: oklch(54.4% 0.188 351.1);
Tailwind
colors: {
  custom: {
    50: '#d375a2',
    500: '#ba307d',
    950: '#000000',
  },
}
SCSS
$custom: #ba307d;
$custom-light: #d375a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba307d",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 326.522,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54449,
    "c": 0.18755,
    "h": 351.1
  },
  "luminance": 0.14034
}

Semantic roles & 50–950 ramp

primary
#BA307D
secondary
#7DC99E
accent
#E28B46
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA307D

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

Preview Lab → · Contrast checker → · Palette generator →

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