#BA40AF#BA40AF

#BA40AF is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.2% C 0.200 H 331.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA40AF
RGBrgb(186, 64, 175)
HSLhsl(305, 49%, 49%)
HSVhsv(305, 66%, 73%)
CMYKcmyk(0%, 65.6%, 5.9%, 27.1%)
CIE-LABlab(48.52, 61.67, -34.70)
CIE-LCHlch(48.52, 70.76, 330.64°)
OKLaboklab(58.23% 0.1762 -0.0952)
OKLCHoklch(58.23% 0.2 331.6)
XYZxyz(29.8209, 17.2033, 42.2991)
Luminance0.1720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40AF #40BA4B
analogous
#8840BA #BA40AF #BA4072
triadic
#BA40AF #AFBA40 #40AFBA
tetradic
#BA40AF #BA8840 #40BA4B #4072BA
square
#BA40AF #BA8840 #40BA4B #4072BA
split-complementary
#BA40AF #72BA40 #40BA88
monochromatic
#5F2159 #8C3084 #BA40AF #CC6BC3 #DC99D6

Accessibility & contrast

On white

4.73
#BA40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40AF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40AF#FFFFFF#000000##FFFFFF
##BA40AF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3968B2
Deuteranopia (green-blind)
#6479AC
Tritanopia (blue-blind)
#C14C72
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba40af;
/* rgb */ color: rgb(186, 64, 175);
/* oklch */ color: oklch(58.2% 0.200 331.6);
Tailwind
colors: {
  custom: {
    50: '#d27ec7',
    500: '#ba40af',
    950: '#000000',
  },
}
SCSS
$custom: #ba40af;
$custom-light: #d27ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40af",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 305.41,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58231,
    "c": 0.20032,
    "h": 331.6
  },
  "luminance": 0.17201
}

Semantic roles & 50–950 ramp

primary
#BA40AF
secondary
#8EC893
accent
#D85C4F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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