#BA307B#BA307B

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

Color values

HEX#BA307B
RGBrgb(186, 48, 123)
HSLhsl(327, 59%, 46%)
HSVhsv(327, 74%, 73%)
CMYKcmyk(0%, 74.2%, 33.9%, 27.1%)
CIE-LABlab(44.21, 60.32, -10.11)
CIE-LCHlch(44.21, 61.16, 350.49°)
OKLaboklab(54.37% 0.1847 -0.0261)
OKLCHoklch(54.37% 0.187 352)
XYZxyz(24.8833, 13.9860, 20.1242)
Luminance0.1398 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA307B #30BA6F
analogous
#B430BA #BA307B #BA3036
triadic
#BA307B #7BBA30 #307BBA
tetradic
#BA307B #BAB430 #30BA6F #3036BA
square
#BA307B #BAB430 #30BA6F #3036BA
split-complementary
#BA307B #36BA30 #30BAB4
monochromatic
#59173B #89235B #BA307B #D35499 #DF85B6

Accessibility & contrast

On white

5.53
#BA307B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#BA307B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA307B
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA307B#FFFFFF#000000##FFFFFF
##BA307B1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48597D
Deuteranopia (green-blind)
#707278
Tritanopia (blue-blind)
#C82551
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba307b;
/* rgb */ color: rgb(186, 48, 123);
/* oklch */ color: oklch(54.4% 0.187 352.0);
Tailwind
colors: {
  custom: {
    50: '#d375a1',
    500: '#ba307b',
    950: '#000000',
  },
}
SCSS
$custom: #ba307b;
$custom-light: #d375a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba307b",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 327.391,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54373,
    "c": 0.18657,
    "h": 352
  },
  "luminance": 0.13983
}

Semantic roles & 50–950 ramp

primary
#BA307B
secondary
#7DC9A0
accent
#E28D46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA307B

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

Preview Lab → · Contrast checker → · Palette generator →

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