#BA40EB#BA40EB

#BA40EB is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.8% C 0.251 H 314.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA40EB
RGBrgb(186, 64, 235)
HSLhsl(283, 81%, 59%)
HSVhsv(283, 73%, 92%)
CMYKcmyk(20.9%, 72.8%, 0%, 7.8%)
CIE-LABlab(51.96, 72.42, -63.69)
CIE-LCHlch(51.96, 96.44, 318.67°)
OKLaboklab(61.8% 0.1746 -0.1797)
OKLCHoklch(61.8% 0.251 314.2)
XYZxyz(37.0759, 20.1053, 80.5088)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40EB #71EB40
analogous
#6440EB #BA40EB #EB40C6
triadic
#BA40EB #EBBA40 #40EBBA
tetradic
#BA40EB #EB6440 #71EB40 #40C6EB
square
#BA40EB #EB6440 #71EB40 #40C6EB
split-complementary
#BA40EB #C6EB40 #40EB64
monochromatic
#7711A0 #A017D7 #BA40EB #CE77F1 #E2AFF7

Accessibility & contrast

On white

4.18
#BA40EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA40EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40EB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40EB#FFFFFF#000000##000000
##BA40EB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#357FE7
Tritanopia (blue-blind)
#B56693
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba40eb;
/* rgb */ color: rgb(186, 64, 235);
/* oklch */ color: oklch(61.8% 0.251 314.2);
Tailwind
colors: {
  custom: {
    50: '#d380f2',
    500: '#ba40eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba40eb;
$custom-light: #d380f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40eb",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 235
  },
  "hsl": {
    "h": 282.807,
    "s": 81.043,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61802,
    "c": 0.25058,
    "h": 314.2
  },
  "luminance": 0.20104
}

Semantic roles & 50–950 ramp

primary
#BA40EB
secondary
#B5E5A2
accent
#F73069
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA40EB

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

Preview Lab → · Contrast checker → · Palette generator →

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