#BA2397#BA2397

#BA2397 is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.6% C 0.215 H 339.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA2397
RGBrgb(186, 35, 151)
HSLhsl(314, 68%, 43%)
HSVhsv(314, 81%, 73%)
CMYKcmyk(0%, 81.2%, 18.8%, 27.1%)
CIE-LABlab(44.06, 67.51, -27.40)
CIE-LCHlch(44.06, 72.86, 337.91°)
OKLaboklab(54.64% 0.2017 -0.0741)
OKLCHoklch(54.64% 0.215 339.8)
XYZxyz(26.4374, 13.8783, 30.5586)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2397 #23BA46
analogous
#9123BA #BA2397 #BA234C
triadic
#BA2397 #97BA23 #2397BA
tetradic
#BA2397 #BA9123 #23BA46 #234CBA
square
#BA2397 #BA9123 #23BA46 #234CBA
split-complementary
#BA2397 #4CBA23 #23BA91
monochromatic
#531043 #86196D #BA2397 #DB3FB7 #E573CA

Accessibility & contrast

On white

5.56
#BA2397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2397
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2397#FFFFFF#000000##FFFFFF
##BA23971.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#637094
Tritanopia (blue-blind)
#C52A5C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba2397;
/* rgb */ color: rgb(186, 35, 151);
/* oklch */ color: oklch(54.6% 0.215 339.8);
Tailwind
colors: {
  custom: {
    50: '#d371b6',
    500: '#ba2397',
    950: '#000000',
  },
}
SCSS
$custom: #ba2397;
$custom-light: #d371b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2397",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 313.907,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54638,
    "c": 0.2149,
    "h": 339.8
  },
  "luminance": 0.13876
}

Semantic roles & 50–950 ramp

primary
#BA2397
secondary
#6DCC83
accent
#EB653D
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2397

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

Preview Lab → · Contrast checker → · Palette generator →

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