#BA40BF#BA40BF

#BA40BF is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.213 H 326.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA40BF
RGBrgb(186, 64, 191)
HSLhsl(298, 50%, 50%)
HSVhsv(298, 66%, 75%)
CMYKcmyk(2.6%, 66.5%, 0%, 25.1%)
CIE-LABlab(49.34, 64.34, -42.74)
CIE-LCHlch(49.34, 77.24, 326.40°)
OKLaboklab(59.09% 0.1771 -0.1185)
OKLCHoklch(59.09% 0.213 326.2)
XYZxyz(31.4865, 17.8695, 51.0708)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40BF #45BF40
analogous
#7B40BF #BA40BF #BF4084
triadic
#BA40BF #BFBA40 #40BFBA
tetradic
#BA40BF #BF7B40 #45BF40 #4084BF
square
#BA40BF #BF7B40 #45BF40 #4084BF
split-complementary
#BA40BF #84BF40 #40BF7B
monochromatic
#612163 #8D3191 #BA40BF #CB6ECE #DB9CDE

Accessibility & contrast

On white

4.59
#BA40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#BA40BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40BF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40BF#FFFFFF#000000##FFFFFF
##BA40BF1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296BC3
Deuteranopia (green-blind)
#5B7BBC
Tritanopia (blue-blind)
#BF537A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba40bf;
/* rgb */ color: rgb(186, 64, 191);
/* oklch */ color: oklch(59.1% 0.213 326.2);
Tailwind
colors: {
  custom: {
    50: '#d27fd3',
    500: '#ba40bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba40bf;
$custom-light: #d27fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40bf",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 297.638,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.59092,
    "c": 0.21311,
    "h": 326.2
  },
  "luminance": 0.17867
}

Semantic roles & 50–950 ramp

primary
#BA40BF
secondary
#93CA91
accent
#D94E54
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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