#BA4EDA#BA4EDA

#BA4EDA is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.1% C 0.219 H 317.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA4EDA
RGBrgb(186, 78, 218)
HSLhsl(286, 65%, 58%)
HSVhsv(286, 64%, 85%)
CMYKcmyk(14.7%, 64.2%, 0%, 14.5%)
CIE-LABlab(52.90, 63.54, -52.57)
CIE-LCHlch(52.90, 82.47, 320.40°)
OKLaboklab(62.14% 0.1616 -0.1472)
OKLCHoklch(62.14% 0.219 317.7)
XYZxyz(35.6272, 20.9513, 68.4834)
Luminance0.2095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EDA #6EDA4E
analogous
#744EDA #BA4EDA #DA4EB4
triadic
#BA4EDA #DABA4E #4EDABA
tetradic
#BA4EDA #DA744E #6EDA4E #4EB4DA
square
#BA4EDA #DA744E #6EDA4E #4EB4DA
split-complementary
#BA4EDA #B4DA4E #4EDA74
monochromatic
#761E90 #9F29C2 #BA4EDA #CE81E5 #E1B3EF

Accessibility & contrast

On white

4.05
#BA4EDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#BA4EDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EDA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EDA#FFFFFF#000000##000000
##BA4EDA1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C77DE
Deuteranopia (green-blind)
#5382D7
Tritanopia (blue-blind)
#B9678D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4eda;
/* rgb */ color: rgb(186, 78, 218);
/* oklch */ color: oklch(62.1% 0.219 317.7);
Tailwind
colors: {
  custom: {
    50: '#d287e6',
    500: '#ba4eda',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eda;
$custom-light: #d287e6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eda",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 218
  },
  "hsl": {
    "h": 286.286,
    "s": 65.421,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62142,
    "c": 0.21864,
    "h": 317.7
  },
  "luminance": 0.2095
}

Semantic roles & 50–950 ramp

primary
#BA4EDA
secondary
#B3DEA6
accent
#E83F66
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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