#BA40C1#BA40C1

#BA40C1 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.2% C 0.215 H 325.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA40C1
RGBrgb(186, 64, 193)
HSLhsl(297, 51%, 50%)
HSVhsv(297, 67%, 76%)
CMYKcmyk(3.6%, 66.8%, 0%, 24.3%)
CIE-LABlab(49.45, 64.68, -43.73)
CIE-LCHlch(49.45, 78.08, 325.94°)
OKLaboklab(59.21% 0.1772 -0.1214)
OKLCHoklch(59.21% 0.215 325.6)
XYZxyz(31.7080, 17.9582, 52.2379)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40C1 #47C140
analogous
#7940C1 #BA40C1 #C14088
triadic
#BA40C1 #C1BA40 #40C1BA
tetradic
#BA40C1 #C17940 #47C140 #4088C1
square
#BA40C1 #C17940 #47C140 #4088C1
split-complementary
#BA40C1 #88C140 #40C179
monochromatic
#622166 #8E3094 #BA40C1 #CB6ED0 #DB9CDF

Accessibility & contrast

On white

4.57
#BA40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40C1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40C1#FFFFFF#000000##000000
##BA40C11.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#266CC5
Deuteranopia (green-blind)
#5A7BBE
Tritanopia (blue-blind)
#BE547C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba40c1;
/* rgb */ color: rgb(186, 64, 193);
/* oklch */ color: oklch(59.2% 0.215 325.6);
Tailwind
colors: {
  custom: {
    50: '#d27fd4',
    500: '#ba40c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba40c1;
$custom-light: #d27fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40c1",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 296.744,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59205,
    "c": 0.21475,
    "h": 325.6
  },
  "luminance": 0.17956
}

Semantic roles & 50–950 ramp

primary
#BA40C1
secondary
#95CB92
accent
#DA4D55
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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