#BA2897#BA2897

#BA2897 is a mid, highly saturated pink. Relative luminance 0.142; OKLCH L 55.0% C 0.211 H 340.0°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#BA2897
RGBrgb(186, 40, 151)
HSLhsl(314, 65%, 44%)
HSVhsv(314, 78%, 73%)
CMYKcmyk(0%, 78.5%, 18.8%, 27.1%)
CIE-LABlab(44.51, 66.22, -26.69)
CIE-LCHlch(44.51, 71.39, 338.04°)
OKLaboklab(54.96% 0.1978 -0.0722)
OKLCHoklch(54.96% 0.211 340)
XYZxyz(26.5952, 14.1938, 30.6112)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2897 #28BA4B
analogous
#9428BA #BA2897 #BA284E
triadic
#BA2897 #97BA28 #2897BA
tetradic
#BA2897 #BA9428 #28BA4B #284EBA
square
#BA2897 #BA9428 #28BA4B #284EBA
split-complementary
#BA2897 #4EBA28 #28BA94
monochromatic
#551245 #881D6E #BA2897 #D848B5 #E27AC9

Accessibility & contrast

On white

5.47
#BA2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#BA2897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2897
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2897#FFFFFF#000000##FFFFFF
##BA28971.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9A
Deuteranopia (green-blind)
#647194
Tritanopia (blue-blind)
#C52E5E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2897;
/* rgb */ color: rgb(186, 40, 151);
/* oklch */ color: oklch(55.0% 0.211 340.0);
Tailwind
colors: {
  custom: {
    50: '#d373b6',
    500: '#ba2897',
    950: '#000000',
  },
}
SCSS
$custom: #ba2897;
$custom-light: #d373b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2897",
  "rgb": {
    "r": 186,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 314.384,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54963,
    "c": 0.21051,
    "h": 340
  },
  "luminance": 0.14191
}

Semantic roles & 50–950 ramp

primary
#BA2897
secondary
#73CA88
accent
#E86840
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2897

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

Preview Lab → · Contrast checker → · Palette generator →

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