#BA40AA#BA40AA

#BA40AA is a mid, vivid purple. Relative luminance 0.170; OKLCH L 58.0% C 0.196 H 333.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA40AA
RGBrgb(186, 64, 170)
HSLhsl(308, 49%, 49%)
HSVhsv(308, 66%, 73%)
CMYKcmyk(0%, 65.6%, 8.6%, 27.1%)
CIE-LABlab(48.27, 60.87, -32.14)
CIE-LCHlch(48.27, 68.84, 332.17°)
OKLaboklab(57.98% 0.1757 -0.0879)
OKLCHoklch(57.98% 0.196 333.4)
XYZxyz(29.3389, 17.0105, 39.7605)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40AA #40BA50
analogous
#8D40BA #BA40AA #BA406D
triadic
#BA40AA #AABA40 #40AABA
tetradic
#BA40AA #BA8D40 #40BA50 #406DBA
square
#BA40AA #BA8D40 #40BA50 #406DBA
split-complementary
#BA40AA #6DBA40 #40BA8D
monochromatic
#5F2157 #8C3080 #BA40AA #CC6BBF #DC99D3

Accessibility & contrast

On white

4.77
#BA40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40AA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40AA#FFFFFF#000000##FFFFFF
##BA40AA1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D67AD
Deuteranopia (green-blind)
#6679A7
Tritanopia (blue-blind)
#C24A6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba40aa;
/* rgb */ color: rgb(186, 64, 170);
/* oklch */ color: oklch(58.0% 0.196 333.4);
Tailwind
colors: {
  custom: {
    50: '#d27ec3',
    500: '#ba40aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba40aa;
$custom-light: #d27ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40aa",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 307.869,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57977,
    "c": 0.19649,
    "h": 333.4
  },
  "luminance": 0.17008
}

Semantic roles & 50–950 ramp

primary
#BA40AA
secondary
#8EC896
accent
#D8614F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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