#BA309F#BA309F

#BA309F is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.0% C 0.208 H 337.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA309F
RGBrgb(186, 48, 159)
HSLhsl(312, 59%, 46%)
HSVhsv(312, 74%, 73%)
CMYKcmyk(0%, 74.2%, 14.5%, 27.1%)
CIE-LABlab(45.71, 64.95, -29.61)
CIE-LCHlch(45.71, 71.38, 335.49°)
OKLaboklab(55.95% 0.1915 -0.0805)
OKLCHoklch(55.95% 0.208 337.2)
XYZxyz(27.5652, 15.0588, 34.2491)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA309F #30BA4B
analogous
#9030BA #BA309F #BA305A
triadic
#BA309F #9FBA30 #309FBA
tetradic
#BA309F #BA9030 #30BA4B #305ABA
square
#BA309F #BA9030 #30BA4B #305ABA
split-complementary
#BA309F #5ABA30 #30BA90
monochromatic
#59174C #892375 #BA309F #D354BA #DF85CE

Accessibility & contrast

On white

5.24
#BA309F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA309F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA309F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA309F#FFFFFF#000000##FFFFFF
##BA309F1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345FA2
Deuteranopia (green-blind)
#64749C
Tritanopia (blue-blind)
#C43864
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba309f;
/* rgb */ color: rgb(186, 48, 159);
/* oklch */ color: oklch(56.0% 0.208 337.2);
Tailwind
colors: {
  custom: {
    50: '#d376bb',
    500: '#ba309f',
    950: '#000000',
  },
}
SCSS
$custom: #ba309f;
$custom-light: #d376bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba309f",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 311.739,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55954,
    "c": 0.20775,
    "h": 337.2
  },
  "luminance": 0.15056
}

Semantic roles & 50–950 ramp

primary
#BA309F
secondary
#7DC98C
accent
#E26446
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA309F

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

Preview Lab → · Contrast checker → · Palette generator →

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