#BA305F#BA305F

#BA305F is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.4% C 0.176 H 5.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#BA305F
RGBrgb(186, 48, 95)
HSLhsl(340, 59%, 46%)
HSVhsv(340, 74%, 73%)
CMYKcmyk(0%, 74.2%, 48.9%, 27.1%)
CIE-LABlab(43.33, 57.51, 5.94)
CIE-LCHlch(43.33, 57.82, 5.90°)
OKLaboklab(53.44% 0.1758 0.0157)
OKLCHoklch(53.44% 0.176 5.1)
XYZxyz(23.3742, 13.3824, 12.1765)
Luminance0.1338 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA305F #30BA8B
analogous
#BA30A4 #BA305F #BA4630
triadic
#BA305F #5FBA30 #305FBA
tetradic
#BA305F #A4BA30 #30BA8B #4630BA
square
#BA305F #A4BA30 #30BA8B #4630BA
split-complementary
#BA305F #30BA46 #30A4BA
monochromatic
#59172D #892346 #BA305F #D3547F #DF85A4

Accessibility & contrast

On white

5.71
#BA305F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#BA305F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA305F
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA305F#FFFFFF#000000##FFFFFF
##BA305F1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515560
Deuteranopia (green-blind)
#76705C
Tritanopia (blue-blind)
#CA1244
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #ba305f;
/* rgb */ color: rgb(186, 48, 95);
/* oklch */ color: oklch(53.4% 0.176 5.1);
Tailwind
colors: {
  custom: {
    50: '#d5748c',
    500: '#ba305f',
    950: '#000000',
  },
}
SCSS
$custom: #ba305f;
$custom-light: #d5748c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba305f",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 95
  },
  "hsl": {
    "h": 339.565,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53439,
    "c": 0.17648,
    "h": 5.1
  },
  "luminance": 0.13379
}

Semantic roles & 50–950 ramp

primary
#BA305F
secondary
#7DC9AF
accent
#E2AD46
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090C
muted
#837B7D

Preview Lab

Preview with #BA305F

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

Preview Lab → · Contrast checker → · Palette generator →

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