#BA40EF#BA40EF

#BA40EF is a light, highly saturated purple. Relative luminance 0.203; OKLCH L 62.1% C 0.254 H 313.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA40EF
RGBrgb(186, 64, 239)
HSLhsl(282, 85%, 59%)
HSVhsv(282, 73%, 94%)
CMYKcmyk(22.2%, 73.2%, 0%, 6.3%)
CIE-LABlab(52.22, 73.20, -65.51)
CIE-LCHlch(52.22, 98.23, 318.17°)
OKLaboklab(62.07% 0.1741 -0.1851)
OKLCHoklch(62.07% 0.254 313.2)
XYZxyz(37.6603, 20.3391, 83.5866)
Luminance0.2034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA40EF #75EF40
analogous
#6340EF #BA40EF #EF40CC
triadic
#BA40EF #EFBA40 #40EFBA
tetradic
#BA40EF #EF6340 #75EF40 #40CCEF
square
#BA40EF #EF6340 #75EF40 #40CCEF
split-complementary
#BA40EF #CCEF40 #40EF63
monochromatic
#780EA7 #A113DF #BA40EF #CE78F4 #E3B1F8

Accessibility & contrast

On white

4.14
#BA40EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA40EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA40EF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA40EF#FFFFFF#000000##000000
##BA40EF1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#2E7FEB
Tritanopia (blue-blind)
#B46795
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba40ef;
/* rgb */ color: rgb(186, 64, 239);
/* oklch */ color: oklch(62.1% 0.254 313.2);
Tailwind
colors: {
  custom: {
    50: '#d480f5',
    500: '#ba40ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba40ef;
$custom-light: #d480f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba40ef",
  "rgb": {
    "r": 186,
    "g": 64,
    "b": 239
  },
  "hsl": {
    "h": 281.829,
    "s": 84.541,
    "l": 59.412
  },
  "oklch": {
    "l": 0.62071,
    "c": 0.25408,
    "h": 313.2
  },
  "luminance": 0.20338
}

Semantic roles & 50–950 ramp

primary
#BA40EF
secondary
#B8E7A3
accent
#FB2D6B
background
#FDF8FF
surface
#FBEFFE
border
#D4CAD6
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA40EF

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

Preview Lab → · Contrast checker → · Palette generator →

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