#BA4EC8#BA4EC8

#BA4EC8 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.1% C 0.202 H 322.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA4EC8
RGBrgb(186, 78, 200)
HSLhsl(293, 53%, 55%)
HSVhsv(293, 61%, 78%)
CMYKcmyk(7%, 61%, 0%, 21.6%)
CIE-LABlab(51.90, 60.14, -43.87)
CIE-LCHlch(51.90, 74.44, 323.89°)
OKLaboklab(61.1% 0.1614 -0.1219)
OKLCHoklch(61.1% 0.202 322.9)
XYZxyz(33.3984, 20.0598, 56.7451)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EC8 #5CC84E
analogous
#7D4EC8 #BA4EC8 #C84E99
triadic
#BA4EC8 #C8BA4E #4EC8BA
tetradic
#BA4EC8 #C87D4E #5CC84E #4E99C8
square
#BA4EC8 #C87D4E #5CC84E #4E99C8
split-complementary
#BA4EC8 #99C84E #4EC87D
monochromatic
#6D2577 #9833A5 #BA4EC8 #CC7DD7 #DEABE5

Accessibility & contrast

On white

4.19
#BA4EC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#BA4EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EC8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EC8#FFFFFF#000000##000000
##BA4EC81.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3674CC
Deuteranopia (green-blind)
#5F80C5
Tritanopia (blue-blind)
#BD6084
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4ec8;
/* rgb */ color: rgb(186, 78, 200);
/* oklch */ color: oklch(61.1% 0.202 322.9);
Tailwind
colors: {
  custom: {
    50: '#d286d9',
    500: '#ba4ec8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ec8;
$custom-light: #d286d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ec8",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 293.115,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61104,
    "c": 0.20224,
    "h": 322.9
  },
  "luminance": 0.20058
}

Semantic roles & 50–950 ramp

primary
#BA4EC8
secondary
#A5D39F
accent
#DC4C5C
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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