#BA2795#BA2795

#BA2795 is a mid, highly saturated pink. Relative luminance 0.141; OKLCH L 54.8% C 0.210 H 340.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA2795
RGBrgb(186, 39, 149)
HSLhsl(315, 65%, 44%)
HSVhsv(315, 79%, 73%)
CMYKcmyk(0%, 79%, 19.9%, 27.1%)
CIE-LABlab(44.32, 66.22, -25.78)
CIE-LCHlch(44.32, 71.06, 338.73°)
OKLaboklab(54.8% 0.1983 -0.0696)
OKLCHoklch(54.8% 0.21 340.7)
XYZxyz(26.4009, 14.0628, 29.7520)
Luminance0.1406 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2795 #27BA4C
analogous
#9627BA #BA2795 #BA274C
triadic
#BA2795 #95BA27 #2795BA
tetradic
#BA2795 #BA9627 #27BA4C #274CBA
square
#BA2795 #BA9627 #27BA4C #274CBA
split-complementary
#BA2795 #4CBA27 #27BA96
monochromatic
#551244 #871C6C #BA2795 #D846B3 #E379C8

Accessibility & contrast

On white

5.51
#BA2795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#BA2795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2795
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2795#FFFFFF#000000##FFFFFF
##BA27951.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345A98
Deuteranopia (green-blind)
#657192
Tritanopia (blue-blind)
#C52C5C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2795;
/* rgb */ color: rgb(186, 39, 149);
/* oklch */ color: oklch(54.8% 0.210 340.7);
Tailwind
colors: {
  custom: {
    50: '#d372b4',
    500: '#ba2795',
    950: '#000000',
  },
}
SCSS
$custom: #ba2795;
$custom-light: #d372b4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2795",
  "rgb": {
    "r": 186,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 315.102,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.54799,
    "c": 0.21018,
    "h": 340.7
  },
  "luminance": 0.1406
}

Semantic roles & 50–950 ramp

primary
#BA2795
secondary
#72CB88
accent
#E86A40
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2795

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

Preview Lab → · Contrast checker → · Palette generator →

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