#BA308F#BA308F

#BA308F is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.2% C 0.197 H 343.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#BA308F
RGBrgb(186, 48, 143)
HSLhsl(319, 59%, 46%)
HSVhsv(319, 74%, 73%)
CMYKcmyk(0%, 74.2%, 23.1%, 27.1%)
CIE-LABlab(45.00, 62.76, -21.11)
CIE-LCHlch(45.00, 66.22, 341.41°)
OKLaboklab(55.2% 0.1892 -0.0564)
OKLCHoklch(55.2% 0.197 343.4)
XYZxyz(26.2656, 14.5389, 27.4043)
Luminance0.1454 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA308F #30BA5B
analogous
#A030BA #BA308F #BA304A
triadic
#BA308F #8FBA30 #308FBA
tetradic
#BA308F #BAA030 #30BA5B #304ABA
square
#BA308F #BAA030 #30BA5B #304ABA
split-complementary
#BA308F #4ABA30 #30BAA0
monochromatic
#591744 #89236A #BA308F #D354AB #DF85C3

Accessibility & contrast

On white

5.37
#BA308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#BA308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA308F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA308F#FFFFFF#000000##FFFFFF
##BA308F1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5C92
Deuteranopia (green-blind)
#6A738C
Tritanopia (blue-blind)
#C6305C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba308f;
/* rgb */ color: rgb(186, 48, 143);
/* oklch */ color: oklch(55.2% 0.197 343.4);
Tailwind
colors: {
  custom: {
    50: '#d376b0',
    500: '#ba308f',
    950: '#000000',
  },
}
SCSS
$custom: #ba308f;
$custom-light: #d376b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba308f",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 318.696,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.552,
    "c": 0.19747,
    "h": 343.4
  },
  "luminance": 0.14536
}

Semantic roles & 50–950 ramp

primary
#BA308F
secondary
#7DC995
accent
#E27646
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA308F

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

Preview Lab → · Contrast checker → · Palette generator →

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