#BA46A6#BA46A6

#BA46A6 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 58.4% C 0.185 H 335.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA46A6
RGBrgb(186, 70, 166)
HSLhsl(310, 46%, 50%)
HSVhsv(310, 62%, 73%)
CMYKcmyk(0%, 62.4%, 10.8%, 27.1%)
CIE-LABlab(48.98, 57.78, -28.68)
CIE-LCHlch(48.98, 64.51, 333.60°)
OKLaboklab(58.43% 0.168 -0.078)
OKLCHoklch(58.43% 0.185 335.1)
XYZxyz(29.3230, 17.5749, 37.9169)
Luminance0.1757 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46A6 #46BA5A
analogous
#9446BA #BA46A6 #BA466C
triadic
#BA46A6 #A6BA46 #46A6BA
tetradic
#BA46A6 #BA9446 #46BA5A #466CBA
square
#BA46A6 #BA9446 #46BA5A #466CBA
split-complementary
#BA46A6 #6CBA46 #46BA94
monochromatic
#612457 #8E357F #BA46A6 #CB73BB #DB9FD1

Accessibility & contrast

On white

4.65
#BA46A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BA46A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA46A6
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46A6#FFFFFF#000000##FFFFFF
##BA46A61.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4669A9
Deuteranopia (green-blind)
#6B7BA3
Tritanopia (blue-blind)
#C34D70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba46a6;
/* rgb */ color: rgb(186, 70, 166);
/* oklch */ color: oklch(58.4% 0.185 335.1);
Tailwind
colors: {
  custom: {
    50: '#d281c0',
    500: '#ba46a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba46a6;
$custom-light: #d281c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46a6",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 166
  },
  "hsl": {
    "h": 310.345,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58429,
    "c": 0.18525,
    "h": 335.1
  },
  "luminance": 0.17573
}

Semantic roles & 50–950 ramp

primary
#BA46A6
secondary
#94C89D
accent
#D56952
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA46A6

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

Preview Lab → · Contrast checker → · Palette generator →

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