#BA4EC7#BA4EC7

#BA4EC7 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.0% C 0.201 H 323.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA4EC7
RGBrgb(186, 78, 199)
HSLhsl(294, 52%, 54%)
HSVhsv(294, 61%, 78%)
CMYKcmyk(6.5%, 60.8%, 0%, 22%)
CIE-LABlab(51.85, 59.95, -43.38)
CIE-LCHlch(51.85, 74.00, 324.11°)
OKLaboklab(61.05% 0.1613 -0.1205)
OKLCHoklch(61.05% 0.201 323.3)
XYZxyz(33.2819, 20.0132, 56.1316)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EC7 #5BC74E
analogous
#7E4EC7 #BA4EC7 #C74E97
triadic
#BA4EC7 #C7BA4E #4EC7BA
tetradic
#BA4EC7 #C77E4E #5BC74E #4E97C7
square
#BA4EC7 #C77E4E #5BC74E #4E97C7
split-complementary
#BA4EC7 #97C74E #4EC77E
monochromatic
#6D2575 #9834A4 #BA4EC7 #CC7CD6 #DEABE4

Accessibility & contrast

On white

4.20
#BA4EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BA4EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EC7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EC7#FFFFFF#000000##000000
##BA4EC71.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3773CB
Deuteranopia (green-blind)
#6080C4
Tritanopia (blue-blind)
#BD6083
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4ec7;
/* rgb */ color: rgb(186, 78, 199);
/* oklch */ color: oklch(61.0% 0.201 323.3);
Tailwind
colors: {
  custom: {
    50: '#d286d8',
    500: '#ba4ec7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ec7;
$custom-light: #d286d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ec7",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 199
  },
  "hsl": {
    "h": 293.554,
    "s": 51.931,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61049,
    "c": 0.20135,
    "h": 323.3
  },
  "luminance": 0.20011
}

Semantic roles & 50–950 ramp

primary
#BA4EC7
secondary
#A4D29F
accent
#DB4C5C
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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