#BA40B9#BA40B9

#BA40B9 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.208 H 328.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BA40B9
RGBrgb(186, 64, 185)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0%, 65.6%, 0.5%, 27.1%)
CIE-LABlab(49.02, 63.32, -39.75)
CIE-LCHlch(49.02, 74.76, 327.88°)
OKLaboklab(58.76% 0.1769 -0.1098)
OKLCHoklch(58.76% 0.208 328.2)
XYZxyz(30.8397, 17.6108, 47.6644)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40B9 #40BA41
analogous
#7E40BA #BA40B9 #BA407C
triadic
#BA40B9 #B9BA40 #40B9BA
tetradic
#BA40B9 #BA7E40 #40BA41 #407CBA
square
#BA40B9 #BA7E40 #40BA41 #407CBA
split-complementary
#BA40B9 #7CBA40 #40BA7E
monochromatic
#5F215E #8C308C #BA40B9 #CC6BCB #DC99DB

Accessibility & contrast

On white

4.64
#BA40B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40B9
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40B9#FFFFFF#000000##FFFFFF
##BA40B91.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306ABD
Deuteranopia (green-blind)
#5F7AB6
Tritanopia (blue-blind)
#C05077
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba40b9;
/* rgb */ color: rgb(186, 64, 185);
/* oklch */ color: oklch(58.8% 0.208 328.2);
Tailwind
colors: {
  custom: {
    50: '#d27ece',
    500: '#ba40b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba40b9;
$custom-light: #d27ece;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40b9",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 300.492,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58761,
    "c": 0.20824,
    "h": 328.2
  },
  "luminance": 0.17609
}

Semantic roles & 50–950 ramp

primary
#BA40B9
secondary
#8EC88F
accent
#D8514F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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