#BA2F96#BA2F96

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

Color values

HEX#BA2F96
RGBrgb(186, 47, 150)
HSLhsl(316, 60%, 46%)
HSVhsv(316, 75%, 73%)
CMYKcmyk(0%, 74.7%, 19.4%, 27.1%)
CIE-LABlab(45.19, 64.01, -25.04)
CIE-LCHlch(45.19, 68.73, 338.64°)
OKLaboklab(55.44% 0.1913 -0.0675)
OKLCHoklch(55.44% 0.203 340.6)
XYZxyz(26.7720, 14.6768, 30.2712)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F96 #2FBA53
analogous
#992FBA #BA2F96 #BA2F50
triadic
#BA2F96 #96BA2F #2F96BA
tetradic
#BA2F96 #BA992F #2FBA53 #2F50BA
square
#BA2F96 #BA992F #2FBA53 #2F50BA
split-complementary
#BA2F96 #50BA2F #2FBA99
monochromatic
#581647 #89236F #BA2F96 #D353B2 #E084C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2F96#FFFFFF#000000##FFFFFF
##BA2F961.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)
#3A5D99
Deuteranopia (green-blind)
#677393
Tritanopia (blue-blind)
#C5335F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2f96;
/* rgb */ color: rgb(186, 47, 150);
/* oklch */ color: oklch(55.4% 0.203 340.6);
Tailwind
colors: {
  custom: {
    50: '#d375b5',
    500: '#ba2f96',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f96;
$custom-light: #d375b5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f96",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 315.54,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55438,
    "c": 0.2029,
    "h": 340.6
  },
  "luminance": 0.14674
}

Semantic roles & 50–950 ramp

primary
#BA2F96
secondary
#7CC990
accent
#E36E45
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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