#BA40BB#BA40BB

#BA40BB is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.9% C 0.210 H 327.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA40BB
RGBrgb(186, 64, 187)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(49.13, 63.66, -40.75)
CIE-LCHlch(49.13, 75.58, 327.37°)
OKLaboklab(58.87% 0.177 -0.1127)
OKLCHoklch(58.87% 0.21 327.5)
XYZxyz(31.0523, 17.6958, 48.7842)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40BB #41BB40
analogous
#7D40BB #BA40BB #BB407F
triadic
#BA40BB #BBBA40 #40BBBA
tetradic
#BA40BB #BB7D40 #41BB40 #407FBB
square
#BA40BB #BB7D40 #41BB40 #407FBB
split-complementary
#BA40BB #7FBB40 #40BB7D
monochromatic
#5F2160 #8D308D #BA40BB #CC6CCD #DC99DC

Accessibility & contrast

On white

4.63
#BA40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BA40BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40BB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40BB#FFFFFF#000000##FFFFFF
##BA40BB1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BBF
Deuteranopia (green-blind)
#5E7AB8
Tritanopia (blue-blind)
#BF5178
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba40bb;
/* rgb */ color: rgb(186, 64, 187);
/* oklch */ color: oklch(58.9% 0.210 327.5);
Tailwind
colors: {
  custom: {
    50: '#d27ed0',
    500: '#ba40bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba40bb;
$custom-light: #d27ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40bb",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 299.512,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5887,
    "c": 0.20985,
    "h": 327.5
  },
  "luminance": 0.17694
}

Semantic roles & 50–950 ramp

primary
#BA40BB
secondary
#8FC88F
accent
#D94F50
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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