#BA2ECA#BA2ECA

#BA2ECA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.2% C 0.241 H 323.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA2ECA
RGBrgb(186, 46, 202)
HSLhsl(294, 63%, 49%)
HSVhsv(294, 77%, 79%)
CMYKcmyk(7.9%, 77.2%, 0%, 20.8%)
CIE-LABlab(47.83, 72.30, -51.52)
CIE-LCHlch(47.83, 88.78, 324.53°)
OKLaboklab(58.22% 0.1936 -0.144)
OKLCHoklch(58.22% 0.241 323.4)
XYZxyz(31.8864, 16.6593, 57.4017)
Luminance0.1666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2ECA #3ECA2E
analogous
#6C2ECA #BA2ECA #CA2E8C
triadic
#BA2ECA #CABA2E #2ECABA
tetradic
#BA2ECA #CA6C2E #3ECA2E #2E8CCA
square
#BA2ECA #CA6C2E #3ECA2E #2E8CCA
split-complementary
#BA2ECA #8CCA2E #2ECA6C
monochromatic
#5E1766 #8C2398 #BA2ECA #CD5BDA #DC8DE5

Accessibility & contrast

On white

4.85
#BA2ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BA2ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2ECA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2ECA#FFFFFF#000000##FFFFFF
##BA2ECA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#4A77C6
Tritanopia (blue-blind)
#BD4D7C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba2eca;
/* rgb */ color: rgb(186, 46, 202);
/* oklch */ color: oklch(58.2% 0.241 323.4);
Tailwind
colors: {
  custom: {
    50: '#d377db',
    500: '#ba2eca',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eca;
$custom-light: #d377db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eca",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 293.846,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58215,
    "c": 0.24125,
    "h": 323.4
  },
  "luminance": 0.16657
}

Semantic roles & 50–950 ramp

primary
#BA2ECA
secondary
#8CCF84
accent
#E64253
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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