#BA3198#BA3198

#BA3198 is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 55.7% C 0.202 H 339.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA3198
RGBrgb(186, 49, 152)
HSLhsl(315, 58%, 46%)
HSVhsv(315, 74%, 73%)
CMYKcmyk(0%, 73.7%, 18.3%, 27.1%)
CIE-LABlab(45.50, 63.64, -25.75)
CIE-LCHlch(45.50, 68.66, 337.97°)
OKLaboklab(55.7% 0.1897 -0.0695)
OKLCHoklch(55.7% 0.202 339.9)
XYZxyz(27.0162, 14.9054, 31.1539)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3198 #31BA53
analogous
#9731BA #BA3198 #BA3153
triadic
#BA3198 #98BA31 #3198BA
tetradic
#BA3198 #BA9731 #31BA53 #3153BA
square
#BA3198 #BA9731 #31BA53 #3153BA
split-complementary
#BA3198 #53BA31 #31BA97
monochromatic
#591749 #8A2470 #BA3198 #D256B3 #DF86C9

Accessibility & contrast

On white

5.28
#BA3198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA3198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3198
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3198#FFFFFF#000000##FFFFFF
##BA31981.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9B
Deuteranopia (green-blind)
#677495
Tritanopia (blue-blind)
#C53661
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba3198;
/* rgb */ color: rgb(186, 49, 152);
/* oklch */ color: oklch(55.7% 0.202 339.9);
Tailwind
colors: {
  custom: {
    50: '#d376b6',
    500: '#ba3198',
    950: '#000000',
  },
}
SCSS
$custom: #ba3198;
$custom-light: #d376b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3198",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 314.891,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.55696,
    "c": 0.20202,
    "h": 339.9
  },
  "luminance": 0.14903
}

Semantic roles & 50–950 ramp

primary
#BA3198
secondary
#7EC991
accent
#E26D46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3198

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

Preview Lab → · Contrast checker → · Palette generator →

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