#BA7ECA#BA7ECA

#BA7ECA is a light, vivid purple. Relative luminance 0.296; OKLCH L 68.1% C 0.127 H 319.0°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA7ECA
RGBrgb(186, 126, 202)
HSLhsl(287, 42%, 64%)
HSVhsv(287, 38%, 79%)
CMYKcmyk(7.9%, 37.6%, 0%, 20.8%)
CIE-LABlab(61.33, 36.21, -30.24)
CIE-LCHlch(61.33, 47.18, 320.13°)
OKLaboklab(68.12% 0.0955 -0.083)
OKLCHoklch(68.12% 0.127 319)
XYZxyz(38.3698, 29.6262, 59.5629)
Luminance0.2963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7ECA #8ECA7E
analogous
#947ECA #BA7ECA #CA7EB4
triadic
#BA7ECA #CABA7E #7ECABA
tetradic
#BA7ECA #CA947E #8ECA7E #7EB4CA
square
#BA7ECA #CA947E #8ECA7E #7EB4CA
split-complementary
#BA7ECA #B4CA7E #7ECA94
monochromatic
#803C92 #A353B8 #BA7ECA #D1A9DC #E8D5EE

Accessibility & contrast

On white

3.03
#BA7ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#BA7ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7ECA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7ECA#FFFFFF#000000##000000
##BA7ECA1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7490CD
Deuteranopia (green-blind)
#8396C8
Tritanopia (blue-blind)
#BB879B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7eca;
/* rgb */ color: rgb(186, 126, 202);
/* oklch */ color: oklch(68.1% 0.127 319.0);
Tailwind
colors: {
  custom: {
    50: '#d0a4da',
    500: '#ba7eca',
    950: '#000000',
  },
}
SCSS
$custom: #ba7eca;
$custom-light: #d0a4da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7eca",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 287.368,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.68121,
    "c": 0.1265,
    "h": 319
  },
  "luminance": 0.29625
}

Semantic roles & 50–950 ramp

primary
#BA7ECA
secondary
#CADFC5
accent
#B5314C
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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