#BA40A2#BA40A2

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

Color values

HEX#BA40A2
RGBrgb(186, 64, 162)
HSLhsl(312, 49%, 49%)
HSVhsv(312, 66%, 73%)
CMYKcmyk(0%, 65.6%, 12.9%, 27.1%)
CIE-LABlab(47.90, 59.63, -27.99)
CIE-LCHlch(47.90, 65.88, 334.86°)
OKLaboklab(57.58% 0.1747 -0.076)
OKLCHoklch(57.58% 0.191 336.5)
XYZxyz(28.6051, 16.7170, 35.8956)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40A2 #40BA58
analogous
#9540BA #BA40A2 #BA4065
triadic
#BA40A2 #A2BA40 #40A2BA
tetradic
#BA40A2 #BA9540 #40BA58 #4065BA
square
#BA40A2 #BA9540 #40BA58 #4065BA
split-complementary
#BA40A2 #65BA40 #40BA95
monochromatic
#5F2153 #8C307A #BA40A2 #CC6BB9 #DC99CF

Accessibility & contrast

On white

4.84
#BA40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40A2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40A2#FFFFFF#000000##FFFFFF
##BA40A21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#69789F
Tritanopia (blue-blind)
#C3476B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba40a2;
/* rgb */ color: rgb(186, 64, 162);
/* oklch */ color: oklch(57.6% 0.191 336.5);
Tailwind
colors: {
  custom: {
    50: '#d27ebe',
    500: '#ba40a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba40a2;
$custom-light: #d27ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40a2",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 311.803,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57585,
    "c": 0.19055,
    "h": 336.5
  },
  "luminance": 0.16715
}

Semantic roles & 50–950 ramp

primary
#BA40A2
secondary
#8EC899
accent
#D86A4F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140A12
muted
#837C81

Preview Lab

Preview with #BA40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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