#BA4ECB#BA4ECB

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

Color values

HEX#BA4ECB
RGBrgb(186, 78, 203)
HSLhsl(292, 55%, 55%)
HSVhsv(292, 62%, 80%)
CMYKcmyk(8.4%, 61.6%, 0%, 20.4%)
CIE-LABlab(52.06, 60.69, -45.34)
CIE-LCHlch(52.06, 75.76, 323.24°)
OKLaboklab(61.27% 0.1615 -0.1262)
OKLCHoklch(61.27% 0.205 322)
XYZxyz(33.7524, 20.2014, 58.6097)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ECB #5FCB4E
analogous
#7B4ECB #BA4ECB #CB4E9D
triadic
#BA4ECB #CBBA4E #4ECBBA
tetradic
#BA4ECB #CB7B4E #5FCB4E #4E9DCB
square
#BA4ECB #CB7B4E #5FCB4E #4E9DCB
split-complementary
#BA4ECB #9DCB4E #4ECB7B
monochromatic
#6F247B #9A32AA #BA4ECB #CC7DD9 #DFADE7

Accessibility & contrast

On white

4.17
#BA4ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BA4ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4ECB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4ECB#FFFFFF#000000##000000
##BA4ECB1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#5D80C8
Tritanopia (blue-blind)
#BC6186
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4ecb;
/* rgb */ color: rgb(186, 78, 203);
/* oklch */ color: oklch(61.3% 0.205 322.0);
Tailwind
colors: {
  custom: {
    50: '#d286db',
    500: '#ba4ecb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ecb;
$custom-light: #d286db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ecb",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 203
  },
  "hsl": {
    "h": 291.84,
    "s": 54.585,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61272,
    "c": 0.20494,
    "h": 322
  },
  "luminance": 0.202
}

Semantic roles & 50–950 ramp

primary
#BA4ECB
secondary
#A7D5A0
accent
#DE4A5E
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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