#BA4EBA#BA4EBA

#BA4EBA is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.4% C 0.190 H 327.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA4EBA
RGBrgb(186, 78, 186)
HSLhsl(300, 44%, 52%)
HSVhsv(300, 58%, 73%)
CMYKcmyk(0%, 58.1%, 0%, 27.1%)
CIE-LABlab(51.19, 57.62, -36.91)
CIE-LCHlch(51.19, 68.43, 327.36°)
OKLaboklab(60.35% 0.1604 -0.1017)
OKLCHoklch(60.35% 0.19 327.6)
XYZxyz(31.8365, 19.4350, 48.5193)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EBA #4EBA4E
analogous
#844EBA #BA4EBA #BA4E84
triadic
#BA4EBA #BABA4E #4EBABA
tetradic
#BA4EBA #BA844E #4EBA4E #4E84BA
square
#BA4EBA #BA844E #4EBA4E #4E84BA
split-complementary
#BA4EBA #84BA4E #4EBA84
monochromatic
#662866 #923992 #BA4EBA #CB7ACB #DCA6DC

Accessibility & contrast

On white

4.30
#BA4EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#BA4EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EBA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EBA#FFFFFF#000000##000000
##BA4EBA1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#BF5B7D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba4eba;
/* rgb */ color: rgb(186, 78, 186);
/* oklch */ color: oklch(60.4% 0.190 327.6);
Tailwind
colors: {
  custom: {
    50: '#d286cf',
    500: '#ba4eba',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eba;
$custom-light: #d286cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eba",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60354,
    "c": 0.18994,
    "h": 327.6
  },
  "luminance": 0.19433
}

Semantic roles & 50–950 ramp

primary
#BA4EBA
secondary
#9ACA9A
accent
#D45454
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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