#BA40B3#BA40B3

#BA40B3 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.4% C 0.203 H 330.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA40B3
RGBrgb(186, 64, 179)
HSLhsl(303, 49%, 49%)
HSVhsv(303, 66%, 73%)
CMYKcmyk(0%, 65.6%, 3.8%, 27.1%)
CIE-LABlab(48.71, 62.32, -36.73)
CIE-LCHlch(48.71, 72.34, 329.48°)
OKLaboklab(58.44% 0.1766 -0.1011)
OKLCHoklch(58.44% 0.203 330.2)
XYZxyz(30.2196, 17.3628, 44.3988)
Luminance0.1736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40B3 #40BA47
analogous
#8440BA #BA40B3 #BA4076
triadic
#BA40B3 #B3BA40 #40B3BA
tetradic
#BA40B3 #BA8440 #40BA47 #4076BA
square
#BA40B3 #BA8440 #40BA47 #4076BA
split-complementary
#BA40B3 #76BA40 #40BA84
monochromatic
#5F215B #8C3087 #BA40B3 #CC6BC7 #DC99D8

Accessibility & contrast

On white

4.70
#BA40B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA40B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA40B3
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40B3#FFFFFF#000000##FFFFFF
##BA40B31.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3669B6
Deuteranopia (green-blind)
#627AB0
Tritanopia (blue-blind)
#C14E74
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba40b3;
/* rgb */ color: rgb(186, 64, 179);
/* oklch */ color: oklch(58.4% 0.203 330.2);
Tailwind
colors: {
  custom: {
    50: '#d27eca',
    500: '#ba40b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba40b3;
$custom-light: #d27eca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40b3",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 303.443,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5844,
    "c": 0.20345,
    "h": 330.2
  },
  "luminance": 0.17361
}

Semantic roles & 50–950 ramp

primary
#BA40B3
secondary
#8EC891
accent
#D8574F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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