#BA40A3#BA40A3

#BA40A3 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.6% C 0.191 H 336.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA40A3
RGBrgb(186, 64, 163)
HSLhsl(311, 49%, 49%)
HSVhsv(311, 66%, 73%)
CMYKcmyk(0%, 65.6%, 12.4%, 27.1%)
CIE-LABlab(47.95, 59.79, -28.51)
CIE-LCHlch(47.95, 66.24, 334.51°)
OKLaboklab(57.63% 0.1749 -0.0775)
OKLCHoklch(57.63% 0.191 336.1)
XYZxyz(28.6943, 16.7527, 36.3656)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40A3 #40BA57
analogous
#9440BA #BA40A3 #BA4066
triadic
#BA40A3 #A3BA40 #40A3BA
tetradic
#BA40A3 #BA9440 #40BA57 #4066BA
square
#BA40A3 #BA9440 #40BA57 #4066BA
split-complementary
#BA40A3 #66BA40 #40BA94
monochromatic
#5F2153 #8C307B #BA40A3 #CC6BBA #DC99CF

Accessibility & contrast

On white

4.83
#BA40A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA40A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40A3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40A3#FFFFFF#000000##FFFFFF
##BA40A31.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A6
Deuteranopia (green-blind)
#6978A0
Tritanopia (blue-blind)
#C3476C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba40a3;
/* rgb */ color: rgb(186, 64, 163);
/* oklch */ color: oklch(57.6% 0.191 336.1);
Tailwind
colors: {
  custom: {
    50: '#d27ebe',
    500: '#ba40a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba40a3;
$custom-light: #d27ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40a3",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 311.311,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57633,
    "c": 0.19128,
    "h": 336.1
  },
  "luminance": 0.1675
}

Semantic roles & 50–950 ramp

primary
#BA40A3
secondary
#8EC899
accent
#D8694F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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