#BA4ECC#BA4ECC

#BA4ECC is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.3% C 0.206 H 321.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA4ECC
RGBrgb(186, 78, 204)
HSLhsl(291, 55%, 55%)
HSVhsv(291, 62%, 80%)
CMYKcmyk(8.8%, 61.8%, 0%, 20%)
CIE-LABlab(52.12, 60.88, -45.83)
CIE-LCHlch(52.12, 76.20, 323.03°)
OKLaboklab(61.33% 0.1615 -0.1276)
OKLCHoklch(61.33% 0.206 321.7)
XYZxyz(33.8720, 20.2492, 59.2394)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ECC #60CC4E
analogous
#7B4ECC #BA4ECC #CC4E9F
triadic
#BA4ECC #CCBA4E #4ECCBA
tetradic
#BA4ECC #CC7B4E #60CC4E #4E9FCC
square
#BA4ECC #CC7B4E #60CC4E #4E9FCC
split-complementary
#BA4ECC #9FCC4E #4ECC7B
monochromatic
#6F247C #9A31AB #BA4ECC #CD7EDA #DFADE7

Accessibility & contrast

On white

4.16
#BA4ECC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BA4ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4ECC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4ECC#FFFFFF#000000##000000
##BA4ECC1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3174D0
Deuteranopia (green-blind)
#5D80C9
Tritanopia (blue-blind)
#BC6286
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4ecc;
/* rgb */ color: rgb(186, 78, 204);
/* oklch */ color: oklch(61.3% 0.206 321.7);
Tailwind
colors: {
  custom: {
    50: '#d286dc',
    500: '#ba4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ecc;
$custom-light: #d286dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ecc",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 291.429,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.61328,
    "c": 0.20584,
    "h": 321.7
  },
  "luminance": 0.20248
}

Semantic roles & 50–950 ramp

primary
#BA4ECC
secondary
#A8D5A1
accent
#DF495F
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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