#BA40CE#BA40CE

#BA40CE is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.0% C 0.226 H 321.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA40CE
RGBrgb(186, 64, 206)
HSLhsl(292, 59%, 53%)
HSVhsv(292, 69%, 81%)
CMYKcmyk(9.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(50.17, 66.98, -50.07)
CIE-LCHlch(50.17, 83.63, 323.22°)
OKLaboklab(59.96% 0.177 -0.1398)
OKLCHoklch(59.96% 0.226 321.7)
XYZxyz(33.2225, 18.5639, 60.2138)
Luminance0.1856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40CE #54CE40
analogous
#7340CE #BA40CE #CE409B
triadic
#BA40CE #CEBA40 #40CEBA
tetradic
#BA40CE #CE7340 #54CE40 #409BCE
square
#BA40CE #CE7340 #54CE40 #409BCE
split-complementary
#BA40CE #9BCE40 #40CE73
monochromatic
#691E75 #952BA6 #BA40CE #CC71DA #DDA1E7

Accessibility & contrast

On white

4.46
#BA40CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA40CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40CE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40CE#FFFFFF#000000##000000
##BA40CE1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#086FD2
Deuteranopia (green-blind)
#527CCB
Tritanopia (blue-blind)
#BC5983
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba40ce;
/* rgb */ color: rgb(186, 64, 206);
/* oklch */ color: oklch(60.0% 0.226 321.7);
Tailwind
colors: {
  custom: {
    50: '#d27fdd',
    500: '#ba40ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba40ce;
$custom-light: #d27fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40ce",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 291.549,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59962,
    "c": 0.22561,
    "h": 321.7
  },
  "luminance": 0.18562
}

Semantic roles & 50–950 ramp

primary
#BA40CE
secondary
#9FD496
accent
#E2455C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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