#BA3298#BA3298

#BA3298 is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.8% C 0.201 H 339.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA3298
RGBrgb(186, 50, 152)
HSLhsl(315, 58%, 46%)
HSVhsv(315, 73%, 73%)
CMYKcmyk(0%, 73.1%, 18.3%, 27.1%)
CIE-LABlab(45.62, 63.32, -25.57)
CIE-LCHlch(45.62, 68.28, 338.01°)
OKLaboklab(55.78% 0.1887 -0.069)
OKLCHoklch(55.78% 0.201 339.9)
XYZxyz(27.0585, 14.9899, 31.1680)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3298 #32BA54
analogous
#9832BA #BA3298 #BA3254
triadic
#BA3298 #98BA32 #3298BA
tetradic
#BA3298 #BA9832 #32BA54 #3254BA
square
#BA3298 #BA9832 #32BA54 #3254BA
split-complementary
#BA3298 #54BA32 #32BA98
monochromatic
#5A1849 #8A2571 #BA3298 #D257B3 #DF88C9

Accessibility & contrast

On white

5.25
#BA3298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#BA3298 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3298
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3298#FFFFFF#000000##FFFFFF
##BA32981.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba3298;
/* rgb */ color: rgb(186, 50, 152);
/* oklch */ color: oklch(55.8% 0.201 339.9);
Tailwind
colors: {
  custom: {
    50: '#d377b6',
    500: '#ba3298',
    950: '#000000',
  },
}
SCSS
$custom: #ba3298;
$custom-light: #d377b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3298",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 152
  },
  "hsl": {
    "h": 315,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55781,
    "c": 0.20091,
    "h": 339.9
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#BA3298
secondary
#7FC992
accent
#E16D47
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3298

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

Preview Lab → · Contrast checker → · Palette generator →

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