#BA309C#BA309C

#BA309C is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.8% C 0.206 H 338.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA309C
RGBrgb(186, 48, 156)
HSLhsl(313, 59%, 46%)
HSVhsv(313, 74%, 73%)
CMYKcmyk(0%, 74.2%, 16.1%, 27.1%)
CIE-LABlab(45.57, 64.53, -28.04)
CIE-LCHlch(45.57, 70.35, 336.51°)
OKLaboklab(55.81% 0.1912 -0.076)
OKLCHoklch(55.81% 0.206 338.3)
XYZxyz(27.3080, 14.9559, 32.8946)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA309C #30BA4E
analogous
#9330BA #BA309C #BA3057
triadic
#BA309C #9CBA30 #309CBA
tetradic
#BA309C #BA9330 #30BA4E #3057BA
square
#BA309C #BA9330 #30BA4E #3057BA
split-complementary
#BA309C #57BA30 #30BA93
monochromatic
#59174A #892373 #BA309C #D354B7 #DF85CC

Accessibility & contrast

On white

5.26
#BA309C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA309C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA309C
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA309C#FFFFFF#000000##FFFFFF
##BA309C1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9F
Deuteranopia (green-blind)
#657499
Tritanopia (blue-blind)
#C43763
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba309c;
/* rgb */ color: rgb(186, 48, 156);
/* oklch */ color: oklch(55.8% 0.206 338.3);
Tailwind
colors: {
  custom: {
    50: '#d376b9',
    500: '#ba309c',
    950: '#000000',
  },
}
SCSS
$custom: #ba309c;
$custom-light: #d376b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba309c",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 313.043,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.20574,
    "h": 338.3
  },
  "luminance": 0.14953
}

Semantic roles & 50–950 ramp

primary
#BA309C
secondary
#7DC98D
accent
#E26846
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA309C

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

Preview Lab → · Contrast checker → · Palette generator →

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