#BA298C#BA298C

#BA298C is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.5% C 0.203 H 344.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA298C
RGBrgb(186, 41, 140)
HSLhsl(319, 64%, 45%)
HSVhsv(319, 78%, 73%)
CMYKcmyk(0%, 78%, 24.7%, 27.1%)
CIE-LABlab(44.12, 64.51, -20.64)
CIE-LCHlch(44.12, 67.73, 342.26°)
OKLaboklab(54.52% 0.1953 -0.0551)
OKLCHoklch(54.52% 0.203 344.2)
XYZxyz(25.7773, 13.9212, 26.1354)
Luminance0.1392 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA298C #29BA57
analogous
#9F29BA #BA298C #BA2944
triadic
#BA298C #8CBA29 #298CBA
tetradic
#BA298C #BA9F29 #29BA57 #2944BA
square
#BA298C #BA9F29 #29BA57 #2944BA
split-complementary
#BA298C #44BA29 #29BA9F
monochromatic
#561341 #881E66 #BA298C #D749AA #E27BC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA298C#FFFFFF#000000##FFFFFF
##BA298C1.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)
#3B598F
Deuteranopia (green-blind)
#687189
Tritanopia (blue-blind)
#C62858
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba298c;
/* rgb */ color: rgb(186, 41, 140);
/* oklch */ color: oklch(54.5% 0.203 344.2);
Tailwind
colors: {
  custom: {
    50: '#d373ad',
    500: '#ba298c',
    950: '#000000',
  },
}
SCSS
$custom: #ba298c;
$custom-light: #d373ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba298c",
  "rgb": {
    "r": 186,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 319.034,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.20288,
    "h": 344.2
  },
  "luminance": 0.13918
}

Semantic roles & 50–950 ramp

primary
#BA298C
secondary
#75CA90
accent
#E77641
background
#FDF7FA
surface
#FBEDF4
border
#D4C8CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA298C

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

Preview Lab → · Contrast checker → · Palette generator →

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