#BA40BD#BA40BD

#BA40BD is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.211 H 326.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA40BD
RGBrgb(186, 64, 189)
HSLhsl(299, 49%, 50%)
HSVhsv(299, 66%, 74%)
CMYKcmyk(1.6%, 66.1%, 0%, 25.9%)
CIE-LABlab(49.23, 64.00, -41.75)
CIE-LCHlch(49.23, 76.41, 326.88°)
OKLaboklab(58.98% 0.1771 -0.1156)
OKLCHoklch(58.98% 0.211 326.9)
XYZxyz(31.2679, 17.7821, 49.9196)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40BD #43BD40
analogous
#7C40BD #BA40BD #BD4082
triadic
#BA40BD #BDBA40 #40BDBA
tetradic
#BA40BD #BD7C40 #43BD40 #4082BD
square
#BA40BD #BD7C40 #43BD40 #4082BD
split-complementary
#BA40BD #82BD40 #40BD7C
monochromatic
#602162 #8D318F #BA40BD #CB6DCD #DB9ADD

Accessibility & contrast

On white

4.61
#BA40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA40BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40BD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40BD#FFFFFF#000000##FFFFFF
##BA40BD1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6BC1
Deuteranopia (green-blind)
#5D7ABA
Tritanopia (blue-blind)
#BF5279
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba40bd;
/* rgb */ color: rgb(186, 64, 189);
/* oklch */ color: oklch(59.0% 0.211 326.9);
Tailwind
colors: {
  custom: {
    50: '#d27ed1',
    500: '#ba40bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba40bd;
$custom-light: #d27ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40bd",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 298.56,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58981,
    "c": 0.21148,
    "h": 326.9
  },
  "luminance": 0.1778
}

Semantic roles & 50–950 ramp

primary
#BA40BD
secondary
#91C990
accent
#D94F52
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BA40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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