#BA2A9E#BA2A9E

#BA2A9E is a mid, highly saturated pink. Relative luminance 0.146; OKLCH L 55.4% C 0.213 H 337.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#BA2A9E
RGBrgb(186, 42, 158)
HSLhsl(312, 63%, 45%)
HSVhsv(312, 77%, 73%)
CMYKcmyk(0%, 77.4%, 15.1%, 27.1%)
CIE-LABlab(45.03, 66.62, -30.08)
CIE-LCHlch(45.03, 73.09, 335.70°)
OKLaboklab(55.45% 0.1968 -0.0818)
OKLCHoklch(55.45% 0.213 337.4)
XYZxyz(27.2498, 14.5663, 33.7176)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2A9E #2ABA46
analogous
#8E2ABA #BA2A9E #BA2A56
triadic
#BA2A9E #9EBA2A #2A9EBA
tetradic
#BA2A9E #BA8E2A #2ABA46 #2A56BA
square
#BA2A9E #BA8E2A #2ABA46 #2A56BA
split-complementary
#BA2A9E #56BA2A #2ABA8E
monochromatic
#561349 #881F74 #BA2A9E #D64BBB #E27DCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2A9E#FFFFFF#000000##FFFFFF
##BA2A9E1.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)
#305DA1
Deuteranopia (green-blind)
#62729B
Tritanopia (blue-blind)
#C43362
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2a9e;
/* rgb */ color: rgb(186, 42, 158);
/* oklch */ color: oklch(55.4% 0.213 337.4);
Tailwind
colors: {
  custom: {
    50: '#d374bb',
    500: '#ba2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #ba2a9e;
$custom-light: #d374bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2a9e",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 311.667,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55448,
    "c": 0.21315,
    "h": 337.4
  },
  "luminance": 0.14564
}

Semantic roles & 50–950 ramp

primary
#BA2A9E
secondary
#76CA86
accent
#E66242
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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