#BA3E98#BA3E98

#BA3E98 is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.9% C 0.186 H 340.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA3E98
RGBrgb(186, 62, 152)
HSLhsl(316, 50%, 49%)
HSVhsv(316, 67%, 73%)
CMYKcmyk(0%, 66.7%, 18.3%, 27.1%)
CIE-LABlab(47.18, 58.95, -23.16)
CIE-LCHlch(47.18, 63.34, 338.55°)
OKLaboklab(56.91% 0.1755 -0.0623)
OKLCHoklch(56.91% 0.186 340.4)
XYZxyz(27.6405, 16.1539, 31.3620)
Luminance0.1615 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3E98 #3EBA60
analogous
#9E3EBA #BA3E98 #BA3E5A
triadic
#BA3E98 #98BA3E #3E98BA
tetradic
#BA3E98 #BA9E3E #3EBA60 #3E5ABA
square
#BA3E98 #BA9E3E #3EBA60 #3E5ABA
split-complementary
#BA3E98 #5ABA3E #3EBA9E
monochromatic
#5E1F4D #8C2F72 #BA3E98 #CD68B1 #DC96C9

Accessibility & contrast

On white

4.96
#BA3E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA3E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3E98
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3E98#FFFFFF#000000##FFFFFF
##BA3E981.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46639B
Deuteranopia (green-blind)
#6C7795
Tritanopia (blue-blind)
#C54165
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3e98;
/* rgb */ color: rgb(186, 62, 152);
/* oklch */ color: oklch(56.9% 0.186 340.4);
Tailwind
colors: {
  custom: {
    50: '#d27cb6',
    500: '#ba3e98',
    950: '#000000',
  },
}
SCSS
$custom: #ba3e98;
$custom-light: #d27cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3e98",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 316.452,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56912,
    "c": 0.18623,
    "h": 340.4
  },
  "luminance": 0.16151
}

Semantic roles & 50–950 ramp

primary
#BA3E98
secondary
#8CC89C
accent
#DA744E
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3E98

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

Preview Lab → · Contrast checker → · Palette generator →

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