#BA3998#BA3998

#BA3998 is a mid, vivid pink. Relative luminance 0.156; OKLCH L 56.4% C 0.193 H 340.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA3998
RGBrgb(186, 57, 152)
HSLhsl(316, 53%, 48%)
HSVhsv(316, 69%, 73%)
CMYKcmyk(0%, 69.4%, 18.3%, 27.1%)
CIE-LABlab(46.49, 60.86, -24.22)
CIE-LCHlch(46.49, 65.50, 338.30°)
OKLaboklab(56.41% 0.1813 -0.0653)
OKLCHoklch(56.41% 0.193 340.2)
XYZxyz(27.3810, 15.6350, 31.2755)
Luminance0.1563 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3998 #39BA5B
analogous
#9B39BA #BA3998 #BA3958
triadic
#BA3998 #98BA39 #3998BA
tetradic
#BA3998 #BA9B39 #39BA5B #3958BA
square
#BA3998 #BA9B39 #39BA5B #3958BA
split-complementary
#BA3998 #58BA39 #39BA9B
monochromatic
#5C1C4B #8B2B72 #BA3998 #CF61B2 #DD90C9

Accessibility & contrast

On white

5.09
#BA3998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA3998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3998
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3998#FFFFFF#000000##FFFFFF
##BA39981.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41619B
Deuteranopia (green-blind)
#6A7695
Tritanopia (blue-blind)
#C53D63
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba3998;
/* rgb */ color: rgb(186, 57, 152);
/* oklch */ color: oklch(56.4% 0.193 340.2);
Tailwind
colors: {
  custom: {
    50: '#d27ab6',
    500: '#ba3998',
    950: '#000000',
  },
}
SCSS
$custom: #ba3998;
$custom-light: #d27ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3998",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 315.814,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56413,
    "c": 0.19264,
    "h": 340.2
  },
  "luminance": 0.15632
}

Semantic roles & 50–950 ramp

primary
#BA3998
secondary
#87C898
accent
#DC724B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3998

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

Preview Lab → · Contrast checker → · Palette generator →

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