#BA40AC#BA40AC

#BA40AC is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.1% C 0.198 H 332.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA40AC
RGBrgb(186, 64, 172)
HSLhsl(307, 49%, 49%)
HSVhsv(307, 66%, 73%)
CMYKcmyk(0%, 65.6%, 7.5%, 27.1%)
CIE-LABlab(48.37, 61.19, -33.17)
CIE-LCHlch(48.37, 69.60, 331.54°)
OKLaboklab(58.08% 0.176 -0.0908)
OKLCHoklch(58.08% 0.198 332.7)
XYZxyz(29.5296, 17.0868, 40.7645)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40AC #40BA4E
analogous
#8B40BA #BA40AC #BA406F
triadic
#BA40AC #ACBA40 #40ACBA
tetradic
#BA40AC #BA8B40 #40BA4E #406FBA
square
#BA40AC #BA8B40 #40BA4E #406FBA
split-complementary
#BA40AC #6FBA40 #40BA8B
monochromatic
#5F2158 #8C3082 #BA40AC #CC6BC1 #DC99D4

Accessibility & contrast

On white

4.75
#BA40AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BA40AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40AC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40AC#FFFFFF#000000##FFFFFF
##BA40AC1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B68AF
Deuteranopia (green-blind)
#6579A9
Tritanopia (blue-blind)
#C24B70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba40ac;
/* rgb */ color: rgb(186, 64, 172);
/* oklch */ color: oklch(58.1% 0.198 332.7);
Tailwind
colors: {
  custom: {
    50: '#d27ec5',
    500: '#ba40ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba40ac;
$custom-light: #d27ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40ac",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 306.885,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58078,
    "c": 0.19801,
    "h": 332.7
  },
  "luminance": 0.17084
}

Semantic roles & 50–950 ramp

primary
#BA40AC
secondary
#8EC895
accent
#D85F4F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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