#BA40B0#BA40B0

#BA40B0 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.201 H 331.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BA40B0
RGBrgb(186, 64, 176)
HSLhsl(305, 49%, 49%)
HSVhsv(305, 66%, 73%)
CMYKcmyk(0%, 65.6%, 5.4%, 27.1%)
CIE-LABlab(48.56, 61.83, -35.21)
CIE-LCHlch(48.56, 71.16, 330.34°)
OKLaboklab(58.28% 0.1763 -0.0967)
OKLCHoklch(58.28% 0.201 331.3)
XYZxyz(29.9195, 17.2427, 42.8182)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40B0 #40BA4A
analogous
#8740BA #BA40B0 #BA4073
triadic
#BA40B0 #B0BA40 #40B0BA
tetradic
#BA40B0 #BA8740 #40BA4A #4073BA
square
#BA40B0 #BA8740 #40BA4A #4073BA
split-complementary
#BA40B0 #73BA40 #40BA87
monochromatic
#5F215A #8C3085 #BA40B0 #CC6BC4 #DC99D6

Accessibility & contrast

On white

4.72
#BA40B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#BA40B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40B0
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40B0#FFFFFF#000000##FFFFFF
##BA40B01.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B3
Deuteranopia (green-blind)
#6379AD
Tritanopia (blue-blind)
#C14D72
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba40b0;
/* rgb */ color: rgb(186, 64, 176);
/* oklch */ color: oklch(58.3% 0.201 331.3);
Tailwind
colors: {
  custom: {
    50: '#d27ec8',
    500: '#ba40b0',
    950: '#000000',
  },
}
SCSS
$custom: #ba40b0;
$custom-light: #d27ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40b0",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 304.918,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58283,
    "c": 0.2011,
    "h": 331.3
  },
  "luminance": 0.1724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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