#BA2E97#BA2E97

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

Color values

HEX#BA2E97
RGBrgb(186, 46, 151)
HSLhsl(315, 60%, 45%)
HSVhsv(315, 75%, 73%)
CMYKcmyk(0%, 75.3%, 18.8%, 27.1%)
CIE-LABlab(45.12, 64.46, -25.74)
CIE-LCHlch(45.12, 69.41, 338.23°)
OKLaboklab(55.41% 0.1924 -0.0695)
OKLCHoklch(55.41% 0.205 340.1)
XYZxyz(26.8134, 14.6301, 30.6839)
Luminance0.1463 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2E97 #2EBA51
analogous
#972EBA #BA2E97 #BA2E51
triadic
#BA2E97 #97BA2E #2E97BA
tetradic
#BA2E97 #BA972E #2EBA51 #2E51BA
square
#BA2E97 #BA972E #2EBA51 #2E51BA
split-complementary
#BA2E97 #51BA2E #2EBA97
monochromatic
#581647 #89226F #BA2E97 #D451B3 #E082C9

Accessibility & contrast

On white

5.35
#BA2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2E97
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2E97#FFFFFF#000000##FFFFFF
##BA2E971.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9A
Deuteranopia (green-blind)
#667394
Tritanopia (blue-blind)
#C5335F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2e97;
/* rgb */ color: rgb(186, 46, 151);
/* oklch */ color: oklch(55.4% 0.205 340.1);
Tailwind
colors: {
  custom: {
    50: '#d375b6',
    500: '#ba2e97',
    950: '#000000',
  },
}
SCSS
$custom: #ba2e97;
$custom-light: #d375b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2e97",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 315,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55406,
    "c": 0.2046,
    "h": 340.1
  },
  "luminance": 0.14627
}

Semantic roles & 50–950 ramp

primary
#BA2E97
secondary
#7BC98E
accent
#E36C44
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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