#BA40BE#BA40BE

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

Color values

HEX#BA40BE
RGBrgb(186, 64, 190)
HSLhsl(298, 50%, 50%)
HSVhsv(298, 66%, 75%)
CMYKcmyk(2.1%, 66.3%, 0%, 25.5%)
CIE-LABlab(49.28, 64.17, -42.25)
CIE-LCHlch(49.28, 76.83, 326.64°)
OKLaboklab(59.04% 0.1771 -0.1171)
OKLCHoklch(59.04% 0.212 326.5)
XYZxyz(31.3768, 17.8256, 50.4933)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40BE #44BE40
analogous
#7B40BE #BA40BE #BE4083
triadic
#BA40BE #BEBA40 #40BEBA
tetradic
#BA40BE #BE7B40 #44BE40 #4083BE
square
#BA40BE #BE7B40 #44BE40 #4083BE
split-complementary
#BA40BE #83BE40 #40BE7B
monochromatic
#602162 #8D3190 #BA40BE #CB6DCE #DB9BDD

Accessibility & contrast

On white

4.60
#BA40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA40BE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40BE#FFFFFF#000000##FFFFFF
##BA40BE1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC2
Deuteranopia (green-blind)
#5C7BBB
Tritanopia (blue-blind)
#BF527A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba40be;
/* rgb */ color: rgb(186, 64, 190);
/* oklch */ color: oklch(59.0% 0.212 326.5);
Tailwind
colors: {
  custom: {
    50: '#d27ed2',
    500: '#ba40be',
    950: '#000000',
  },
}
SCSS
$custom: #ba40be;
$custom-light: #d27ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40be",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 298.095,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.59036,
    "c": 0.21229,
    "h": 326.5
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#BA40BE
secondary
#92C990
accent
#D94F53
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BA40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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