#BA40C3#BA40C3

#BA40C3 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.3% C 0.216 H 325.0°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA40C3
RGBrgb(186, 64, 195)
HSLhsl(296, 52%, 51%)
HSVhsv(296, 67%, 76%)
CMYKcmyk(4.6%, 67.2%, 0%, 23.5%)
CIE-LABlab(49.55, 65.03, -44.72)
CIE-LCHlch(49.55, 78.92, 325.49°)
OKLaboklab(59.32% 0.1772 -0.1242)
OKLCHoklch(59.32% 0.216 325)
XYZxyz(31.9327, 18.0480, 53.4208)
Luminance0.1805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40C3 #49C340
analogous
#7840C3 #BA40C3 #C3408A
triadic
#BA40C3 #C3BA40 #40C3BA
tetradic
#BA40C3 #C37840 #49C340 #408AC3
square
#BA40C3 #C37840 #49C340 #408AC3
split-complementary
#BA40C3 #8AC340 #40C378
monochromatic
#632168 #8F2F97 #BA40C3 #CB6FD2 #DC9DE0

Accessibility & contrast

On white

4.56
#BA40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#BA40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40C3
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40C3#FFFFFF#000000##000000
##BA40C31.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#236CC7
Deuteranopia (green-blind)
#597BC0
Tritanopia (blue-blind)
#BE557D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba40c3;
/* rgb */ color: rgb(186, 64, 195);
/* oklch */ color: oklch(59.3% 0.216 325.0);
Tailwind
colors: {
  custom: {
    50: '#d27fd6',
    500: '#ba40c3',
    950: '#000000',
  },
}
SCSS
$custom: #ba40c3;
$custom-light: #d27fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40c3",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 295.878,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59318,
    "c": 0.2164,
    "h": 325
  },
  "luminance": 0.18046
}

Semantic roles & 50–950 ramp

primary
#BA40C3
secondary
#96CC92
accent
#DC4C56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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