#BA40BC#BA40BC

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

Color values

HEX#BA40BC
RGBrgb(186, 64, 188)
HSLhsl(299, 49%, 49%)
HSVhsv(299, 66%, 74%)
CMYKcmyk(1.1%, 66%, 0%, 26.3%)
CIE-LABlab(49.18, 63.83, -41.25)
CIE-LCHlch(49.18, 76.00, 327.12°)
OKLaboklab(58.93% 0.177 -0.1142)
OKLCHoklch(58.93% 0.211 327.2)
XYZxyz(31.1597, 17.7388, 49.3499)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40BC #42BC40
analogous
#7C40BC #BA40BC #BC4080
triadic
#BA40BC #BCBA40 #40BCBA
tetradic
#BA40BC #BC7C40 #42BC40 #4080BC
square
#BA40BC #BC7C40 #42BC40 #4080BC
split-complementary
#BA40BC #80BC40 #40BC7C
monochromatic
#602161 #8D308E #BA40BC #CB6CCD #DB9ADD

Accessibility & contrast

On white

4.62
#BA40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#BA40BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40BC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40BC#FFFFFF#000000##FFFFFF
##BA40BC1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba40bc;
/* rgb */ color: rgb(186, 64, 188);
/* oklch */ color: oklch(58.9% 0.211 327.2);
Tailwind
colors: {
  custom: {
    50: '#d27ed0',
    500: '#ba40bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba40bc;
$custom-light: #d27ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40bc",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 299.032,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58925,
    "c": 0.21066,
    "h": 327.2
  },
  "luminance": 0.17737
}

Semantic roles & 50–950 ramp

primary
#BA40BC
secondary
#90C98F
accent
#D94F51
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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