#BA309B#BA309B

#BA309B is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 55.8% C 0.205 H 338.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA309B
RGBrgb(186, 48, 155)
HSLhsl(313, 59%, 46%)
HSVhsv(313, 74%, 73%)
CMYKcmyk(0%, 74.2%, 16.7%, 27.1%)
CIE-LABlab(45.53, 64.38, -27.51)
CIE-LCHlch(45.53, 70.02, 336.86°)
OKLaboklab(55.76% 0.1911 -0.0745)
OKLCHoklch(55.76% 0.205 338.7)
XYZxyz(27.2237, 14.9222, 32.4505)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA309B #30BA4F
analogous
#9430BA #BA309B #BA3056
triadic
#BA309B #9BBA30 #309BBA
tetradic
#BA309B #BA9430 #30BA4F #3056BA
square
#BA309B #BA9430 #30BA4F #3056BA
split-complementary
#BA309B #56BA30 #30BA94
monochromatic
#59174A #892372 #BA309B #D354B6 #DF85CB

Accessibility & contrast

On white

5.27
#BA309B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA309B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA309B
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA309B#FFFFFF#000000##FFFFFF
##BA309B1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9E
Deuteranopia (green-blind)
#657398
Tritanopia (blue-blind)
#C53662
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba309b;
/* rgb */ color: rgb(186, 48, 155);
/* oklch */ color: oklch(55.8% 0.205 338.7);
Tailwind
colors: {
  custom: {
    50: '#d376b8',
    500: '#ba309b',
    950: '#000000',
  },
}
SCSS
$custom: #ba309b;
$custom-light: #d376b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba309b",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 313.478,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55758,
    "c": 0.20508,
    "h": 338.7
  },
  "luminance": 0.1492
}

Semantic roles & 50–950 ramp

primary
#BA309B
secondary
#7DC98E
accent
#E26946
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA309B

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

Preview Lab → · Contrast checker → · Palette generator →

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