#BA2F7B#BA2F7B

#BA2F7B is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.3% C 0.188 H 351.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA2F7B
RGBrgb(186, 47, 123)
HSLhsl(327, 60%, 46%)
HSVhsv(327, 75%, 73%)
CMYKcmyk(0%, 74.7%, 33.9%, 27.1%)
CIE-LABlab(44.10, 60.65, -10.28)
CIE-LCHlch(44.10, 61.52, 350.38°)
OKLaboklab(54.29% 0.1858 -0.0266)
OKLCHoklch(54.29% 0.188 351.9)
XYZxyz(24.8428, 13.9051, 20.1108)
Luminance0.1390 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F7B #2FBA6E
analogous
#B32FBA #BA2F7B #BA2F35
triadic
#BA2F7B #7BBA2F #2F7BBA
tetradic
#BA2F7B #BAB32F #2FBA6E #2F35BA
square
#BA2F7B #BAB32F #2FBA6E #2F35BA
split-complementary
#BA2F7B #35BA2F #2FBAB3
monochromatic
#58163A #89235B #BA2F7B #D35399 #E084B6

Accessibility & contrast

On white

5.55
#BA2F7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#BA2F7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F7B
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F7B#FFFFFF#000000##FFFFFF
##BA2F7B1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48587D
Deuteranopia (green-blind)
#6F7178
Tritanopia (blue-blind)
#C82351
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba2f7b;
/* rgb */ color: rgb(186, 47, 123);
/* oklch */ color: oklch(54.3% 0.188 351.9);
Tailwind
colors: {
  custom: {
    50: '#d375a1',
    500: '#ba2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f7b;
$custom-light: #d375a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f7b",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 327.194,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54288,
    "c": 0.18767,
    "h": 351.9
  },
  "luminance": 0.13902
}

Semantic roles & 50–950 ramp

primary
#BA2F7B
secondary
#7CC99F
accent
#E38D45
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #BA2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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