#BA4EE5#BA4EE5

#BA4EE5 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 62.8% C 0.229 H 314.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA4EE5
RGBrgb(186, 78, 229)
HSLhsl(283, 74%, 60%)
HSVhsv(283, 66%, 90%)
CMYKcmyk(18.8%, 65.9%, 0%, 10.2%)
CIE-LABlab(53.54, 65.71, -57.76)
CIE-LCHlch(53.54, 87.48, 318.68°)
OKLaboklab(62.81% 0.1612 -0.1624)
OKLCHoklch(62.81% 0.229 314.8)
XYZxyz(37.1146, 21.5463, 76.3173)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EE5 #79E54E
analogous
#6F4EE5 #BA4EE5 #E54EC4
triadic
#BA4EE5 #E5BA4E #4EE5BA
tetradic
#BA4EE5 #E56F4E #79E54E #4EC4E5
square
#BA4EE5 #E56F4E #79E54E #4EC4E5
split-complementary
#BA4EE5 #C4E54E #4EE56F
monochromatic
#7A18A1 #A21FD6 #BA4EE5 #CF83ED #E4B9F5

Accessibility & contrast

On white

3.96
#BA4EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#BA4EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EE5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EE5#FFFFFF#000000##000000
##BA4EE51.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#4983E1
Tritanopia (blue-blind)
#B66B93
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba4ee5;
/* rgb */ color: rgb(186, 78, 229);
/* oklch */ color: oklch(62.8% 0.229 314.8);
Tailwind
colors: {
  custom: {
    50: '#d387ee',
    500: '#ba4ee5',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ee5;
$custom-light: #d387ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ee5",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 229
  },
  "hsl": {
    "h": 282.914,
    "s": 74.384,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62814,
    "c": 0.22886,
    "h": 314.8
  },
  "luminance": 0.21545
}

Semantic roles & 50–950 ramp

primary
#BA4EE5
secondary
#BBE4AA
accent
#D70F48
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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