#BA4098#BA4098

#BA4098 is a mid, vivid pink. Relative luminance 0.164; OKLCH L 57.1% C 0.184 H 340.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA4098
RGBrgb(186, 64, 152)
HSLhsl(317, 49%, 49%)
HSVhsv(317, 66%, 73%)
CMYKcmyk(0%, 65.6%, 18.3%, 27.1%)
CIE-LABlab(47.46, 58.16, -22.71)
CIE-LCHlch(47.46, 62.44, 338.67°)
OKLaboklab(57.12% 0.1731 -0.0611)
OKLCHoklch(57.12% 0.184 340.6)
XYZxyz(27.7513, 16.3754, 31.3989)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4098 #40BA62
analogous
#9F40BA #BA4098 #BA405B
triadic
#BA4098 #98BA40 #4098BA
tetradic
#BA4098 #BA9F40 #40BA62 #405BBA
square
#BA4098 #BA9F40 #40BA62 #405BBA
split-complementary
#BA4098 #5BBA40 #40BA9F
monochromatic
#5F214E #8C3073 #BA4098 #CC6BB1 #DC99C9

Accessibility & contrast

On white

4.91
#BA4098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BA4098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4098
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4098#FFFFFF#000000##FFFFFF
##BA40981.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48649B
Deuteranopia (green-blind)
#6D7895
Tritanopia (blue-blind)
#C54366
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba4098;
/* rgb */ color: rgb(186, 64, 152);
/* oklch */ color: oklch(57.1% 0.184 340.6);
Tailwind
colors: {
  custom: {
    50: '#d27db6',
    500: '#ba4098',
    950: '#000000',
  },
}
SCSS
$custom: #ba4098;
$custom-light: #d27db6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4098",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 316.721,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57122,
    "c": 0.18355,
    "h": 340.6
  },
  "luminance": 0.16373
}

Semantic roles & 50–950 ramp

primary
#BA4098
secondary
#8EC89E
accent
#D8764F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA4098

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

Preview Lab → · Contrast checker → · Palette generator →

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