#BA40C0#BA40C0

#BA40C0 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.214 H 325.9°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#BA40C0
RGBrgb(186, 64, 192)
HSLhsl(297, 50%, 50%)
HSVhsv(297, 67%, 75%)
CMYKcmyk(3.1%, 66.7%, 0%, 24.7%)
CIE-LABlab(49.39, 64.51, -43.24)
CIE-LCHlch(49.39, 77.66, 326.17°)
OKLaboklab(59.15% 0.1771 -0.1199)
OKLCHoklch(59.15% 0.214 325.9)
XYZxyz(31.5969, 17.9137, 51.6524)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40C0 #46C040
analogous
#7A40C0 #BA40C0 #C04086
triadic
#BA40C0 #C0BA40 #40C0BA
tetradic
#BA40C0 #C07A40 #46C040 #4086C0
square
#BA40C0 #C07A40 #46C040 #4086C0
split-complementary
#BA40C0 #86C040 #40C07A
monochromatic
#612164 #8E3092 #BA40C0 #CB6ECF #DB9CDE

Accessibility & contrast

On white

4.58
#BA40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#BA40C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40C0
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40C0#FFFFFF#000000##000000
##BA40C01.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#286CC4
Deuteranopia (green-blind)
#5B7BBD
Tritanopia (blue-blind)
#BF537B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba40c0;
/* rgb */ color: rgb(186, 64, 192);
/* oklch */ color: oklch(59.1% 0.214 325.9);
Tailwind
colors: {
  custom: {
    50: '#d27fd3',
    500: '#ba40c0',
    950: '#000000',
  },
}
SCSS
$custom: #ba40c0;
$custom-light: #d27fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40c0",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 297.188,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59148,
    "c": 0.21393,
    "h": 325.9
  },
  "luminance": 0.17912
}

Semantic roles & 50–950 ramp

primary
#BA40C0
secondary
#94CB91
accent
#DA4E54
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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