#BA418E#BA418E

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

Color values

HEX#BA418E
RGBrgb(186, 65, 142)
HSLhsl(322, 48%, 49%)
HSVhsv(322, 65%, 73%)
CMYKcmyk(0%, 65.1%, 23.7%, 27.1%)
CIE-LABlab(47.20, 56.35, -17.12)
CIE-LCHlch(47.20, 58.89, 343.10°)
OKLaboklab(56.8% 0.1698 -0.0455)
OKLCHoklch(56.8% 0.176 345)
XYZxyz(27.0234, 16.1753, 27.2849)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA418E #41BA6D
analogous
#AA41BA #BA418E #BA4152
triadic
#BA418E #8EBA41 #418EBA
tetradic
#BA418E #BAAA41 #41BA6D #4152BA
square
#BA418E #BAAA41 #41BA6D #4152BA
split-complementary
#BA418E #52BA41 #41BAAA
monochromatic
#5F2149 #8D316B #BA418E #CC6CA9 #DC9AC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA418E#FFFFFF#000000##FFFFFF
##BA418E1.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)
#4D6390
Deuteranopia (green-blind)
#71778B
Tritanopia (blue-blind)
#C64062
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba418e;
/* rgb */ color: rgb(186, 65, 142);
/* oklch */ color: oklch(56.8% 0.176 345.0);
Tailwind
colors: {
  custom: {
    50: '#d27eaf',
    500: '#ba418e',
    950: '#000000',
  },
}
SCSS
$custom: #ba418e;
$custom-light: #d27eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba418e",
  "rgb": {
    "r": 186,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 321.818,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56798,
    "c": 0.17574,
    "h": 345
  },
  "luminance": 0.16173
}

Semantic roles & 50–950 ramp

primary
#BA418E
secondary
#8FC8A4
accent
#D88150
background
#FDF8FA
surface
#FAEFF4
border
#D3CACE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA418E

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

Preview Lab → · Contrast checker → · Palette generator →

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