#BA40BA#BA40BA

#BA40BA is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.209 H 327.8°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BA40BA
RGBrgb(186, 64, 186)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0%, 65.6%, 0%, 27.1%)
CIE-LABlab(49.07, 63.49, -40.26)
CIE-LCHlch(49.07, 75.17, 327.62°)
OKLaboklab(58.82% 0.177 -0.1113)
OKLCHoklch(58.82% 0.209 327.8)
XYZxyz(30.9456, 17.6532, 48.2223)
Luminance0.1765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40BA #40BA40
analogous
#7D40BA #BA40BA #BA407D
triadic
#BA40BA #BABA40 #40BABA
tetradic
#BA40BA #BA7D40 #40BA40 #407DBA
square
#BA40BA #BA7D40 #40BA40 #407DBA
split-complementary
#BA40BA #7DBA40 #40BA7D
monochromatic
#5F215F #8C308C #BA40BA #CC6BCC #DC99DC

Accessibility & contrast

On white

4.64
#BA40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA40BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40BA
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40BA#FFFFFF#000000##FFFFFF
##BA40BA1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6ABE
Deuteranopia (green-blind)
#5E7AB7
Tritanopia (blue-blind)
#C05178
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba40ba;
/* rgb */ color: rgb(186, 64, 186);
/* oklch */ color: oklch(58.8% 0.209 327.8);
Tailwind
colors: {
  custom: {
    50: '#d27ecf',
    500: '#ba40ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba40ba;
$custom-light: #d27ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40ba",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58815,
    "c": 0.20904,
    "h": 327.8
  },
  "luminance": 0.17651
}

Semantic roles & 50–950 ramp

primary
#BA40BA
secondary
#8EC88E
accent
#D84F4F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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