#BA40C8#BA40C8

#BA40C8 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.6% C 0.221 H 323.4°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA40C8
RGBrgb(186, 64, 200)
HSLhsl(294, 55%, 52%)
HSVhsv(294, 68%, 78%)
CMYKcmyk(7%, 68%, 0%, 21.6%)
CIE-LABlab(49.83, 65.91, -47.16)
CIE-LCHlch(49.83, 81.05, 324.41°)
OKLaboklab(59.61% 0.1772 -0.1314)
OKLCHoklch(59.61% 0.221 323.4)
XYZxyz(32.5075, 18.2779, 56.4481)
Luminance0.1828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40C8 #4EC840
analogous
#7640C8 #BA40C8 #C84092
triadic
#BA40C8 #C8BA40 #40C8BA
tetradic
#BA40C8 #C87640 #4EC840 #4092C8
square
#BA40C8 #C87640 #4EC840 #4092C8
split-complementary
#BA40C8 #92C840 #40C876
monochromatic
#66206E #922D9D #BA40C8 #CB70D6 #DC9FE3

Accessibility & contrast

On white

4.51
#BA40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA40C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40C8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40C8#FFFFFF#000000##000000
##BA40C81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A6DCC
Deuteranopia (green-blind)
#567BC5
Tritanopia (blue-blind)
#BD577F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba40c8;
/* rgb */ color: rgb(186, 64, 200);
/* oklch */ color: oklch(59.6% 0.221 323.4);
Tailwind
colors: {
  custom: {
    50: '#d27fd9',
    500: '#ba40c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba40c8;
$custom-light: #d27fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40c8",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 293.824,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59607,
    "c": 0.22056,
    "h": 323.4
  },
  "luminance": 0.18276
}

Semantic roles & 50–950 ramp

primary
#BA40C8
secondary
#9AD094
accent
#DF4959
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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