#BA2B9F#BA2B9F

#BA2B9F is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.6% C 0.213 H 337.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#BA2B9F
RGBrgb(186, 43, 159)
HSLhsl(311, 62%, 45%)
HSVhsv(311, 77%, 73%)
CMYKcmyk(0%, 76.9%, 14.5%, 27.1%)
CIE-LABlab(45.18, 66.47, -30.44)
CIE-LCHlch(45.18, 73.11, 335.39°)
OKLaboklab(55.57% 0.1961 -0.0829)
OKLCHoklch(55.57% 0.213 337.1)
XYZxyz(27.3721, 14.6727, 34.1847)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2B9F #2BBA46
analogous
#8E2BBA #BA2B9F #BA2B57
triadic
#BA2B9F #9FBA2B #2B9FBA
tetradic
#BA2B9F #BA8E2B #2BBA46 #2B57BA
square
#BA2B9F #BA8E2B #2BBA46 #2B57BA
split-complementary
#BA2B9F #57BA2B #2BBA8E
monochromatic
#57144A #882075 #BA2B9F #D64CBC #E17ECF

Accessibility & contrast

On white

5.34
#BA2B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BA2B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2B9F
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2B9F#FFFFFF#000000##FFFFFF
##BA2B9F1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#62739C
Tritanopia (blue-blind)
#C43563
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2b9f;
/* rgb */ color: rgb(186, 43, 159);
/* oklch */ color: oklch(55.6% 0.213 337.1);
Tailwind
colors: {
  custom: {
    50: '#d374bb',
    500: '#ba2b9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2b9f;
$custom-light: #d374bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2b9f",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 311.329,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55571,
    "c": 0.21285,
    "h": 337.1
  },
  "luminance": 0.1467
}

Semantic roles & 50–950 ramp

primary
#BA2B9F
secondary
#77CA87
accent
#E66142
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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