#BA4EBD#BA4EBD

#BA4EBD is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.5% C 0.193 H 326.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA4EBD
RGBrgb(186, 78, 189)
HSLhsl(298, 46%, 52%)
HSVhsv(298, 59%, 74%)
CMYKcmyk(1.6%, 58.7%, 0%, 25.9%)
CIE-LABlab(51.34, 58.15, -38.42)
CIE-LCHlch(51.34, 69.69, 326.55°)
OKLaboklab(60.51% 0.1607 -0.1061)
OKLCHoklch(60.51% 0.193 326.6)
XYZxyz(32.1588, 19.5639, 50.2166)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EBD #51BD4E
analogous
#824EBD #BA4EBD #BD4E89
triadic
#BA4EBD #BDBA4E #4EBDBA
tetradic
#BA4EBD #BD824E #51BD4E #4E89BD
square
#BA4EBD #BD824E #51BD4E #4E89BD
split-complementary
#BA4EBD #89BD4E #4EBD82
monochromatic
#682769 #933896 #BA4EBD #CB7BCE #DDA7DE

Accessibility & contrast

On white

4.27
#BA4EBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA4EBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EBD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EBD#FFFFFF#000000##000000
##BA4EBD1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4071C0
Deuteranopia (green-blind)
#657FBA
Tritanopia (blue-blind)
#BF5C7E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba4ebd;
/* rgb */ color: rgb(186, 78, 189);
/* oklch */ color: oklch(60.5% 0.193 326.6);
Tailwind
colors: {
  custom: {
    50: '#d286d1',
    500: '#ba4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ebd;
$custom-light: #d286d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ebd",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 298.378,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60511,
    "c": 0.19252,
    "h": 326.6
  },
  "luminance": 0.19562
}

Semantic roles & 50–950 ramp

primary
#BA4EBD
secondary
#9DCC9B
accent
#D55256
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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