#BA3798#BA3798

#BA3798 is a mid, vivid pink. Relative luminance 0.154; OKLCH L 56.2% C 0.195 H 340.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA3798
RGBrgb(186, 55, 152)
HSLhsl(316, 54%, 47%)
HSVhsv(316, 70%, 73%)
CMYKcmyk(0%, 70.4%, 18.3%, 27.1%)
CIE-LABlab(46.23, 61.59, -24.62)
CIE-LCHlch(46.23, 66.33, 338.21°)
OKLaboklab(56.23% 0.1835 -0.0664)
OKLCHoklch(56.23% 0.195 340.1)
XYZxyz(27.2841, 15.4411, 31.2432)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3798 #37BA59
analogous
#9B37BA #BA3798 #BA3756
triadic
#BA3798 #98BA37 #3798BA
tetradic
#BA3798 #BA9B37 #37BA59 #3756BA
square
#BA3798 #BA9B37 #37BA59 #3756BA
split-complementary
#BA3798 #56BA37 #37BA9B
monochromatic
#5C1B4B #8B2971 #BA3798 #D05FB2 #DE8EC9

Accessibility & contrast

On white

5.14
#BA3798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA3798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3798
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3798#FFFFFF#000000##FFFFFF
##BA37981.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40609B
Deuteranopia (green-blind)
#697595
Tritanopia (blue-blind)
#C53B63
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba3798;
/* rgb */ color: rgb(186, 55, 152);
/* oklch */ color: oklch(56.2% 0.195 340.1);
Tailwind
colors: {
  custom: {
    50: '#d279b6',
    500: '#ba3798',
    950: '#000000',
  },
}
SCSS
$custom: #ba3798;
$custom-light: #d279b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3798",
  "rgb": {
    "r": 186,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 315.573,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56225,
    "c": 0.19509,
    "h": 340.1
  },
  "luminance": 0.15438
}

Semantic roles & 50–950 ramp

primary
#BA3798
secondary
#85C896
accent
#DE704A
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3798

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

Preview Lab → · Contrast checker → · Palette generator →

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