#BA40AE#BA40AE

#BA40AE is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.200 H 332.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BA40AE
RGBrgb(186, 64, 174)
HSLhsl(306, 49%, 49%)
HSVhsv(306, 66%, 73%)
CMYKcmyk(0%, 65.6%, 6.5%, 27.1%)
CIE-LABlab(48.47, 61.51, -34.19)
CIE-LCHlch(48.47, 70.37, 330.93°)
OKLaboklab(58.18% 0.1761 -0.0938)
OKLCHoklch(58.18% 0.2 332)
XYZxyz(29.7231, 17.1642, 41.7837)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40AE #40BA4C
analogous
#8940BA #BA40AE #BA4071
triadic
#BA40AE #AEBA40 #40AEBA
tetradic
#BA40AE #BA8940 #40BA4C #4071BA
square
#BA40AE #BA8940 #40BA4C #4071BA
split-complementary
#BA40AE #71BA40 #40BA89
monochromatic
#5F2159 #8C3083 #BA40AE #CC6BC3 #DC99D5

Accessibility & contrast

On white

4.74
#BA40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40AE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40AE#FFFFFF#000000##FFFFFF
##BA40AE1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A68B1
Deuteranopia (green-blind)
#6479AB
Tritanopia (blue-blind)
#C24C71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba40ae;
/* rgb */ color: rgb(186, 64, 174);
/* oklch */ color: oklch(58.2% 0.200 332.0);
Tailwind
colors: {
  custom: {
    50: '#d27ec6',
    500: '#ba40ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba40ae;
$custom-light: #d27ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40ae",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 305.902,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5818,
    "c": 0.19955,
    "h": 332
  },
  "luminance": 0.17162
}

Semantic roles & 50–950 ramp

primary
#BA40AE
secondary
#8EC894
accent
#D85D4F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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