#BA7BEC#BA7BEC

#BA7BEC is a light, vivid violet. Relative luminance 0.307; OKLCH L 69.3% C 0.170 H 308.3°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#BA7BEC
RGBrgb(186, 123, 236)
HSLhsl(273, 75%, 70%)
HSVhsv(273, 48%, 93%)
CMYKcmyk(21.2%, 47.9%, 0%, 7.5%)
CIE-LABlab(62.22, 45.09, -47.85)
CIE-LCHlch(62.22, 65.75, 313.30°)
OKLaboklab(69.29% 0.1056 -0.1337)
OKLCHoklch(69.29% 0.17 308.3)
XYZxyz(42.4700, 30.6617, 83.0216)
Luminance0.3066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BEC #ADEC7B
analogous
#817BEC #BA7BEC #EC7BE6
triadic
#BA7BEC #ECBA7B #7BECBA
tetradic
#BA7BEC #EC817B #ADEC7B #7BE6EC
square
#BA7BEC #EC817B #ADEC7B #7BE6EC
split-complementary
#BA7BEC #E6EC7B #7BEC81
monochromatic
#801ECF #9E46E4 #BA7BEC #D6B0F4 #F1E4FB

Accessibility & contrast

On white

2.94
#BA7BEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#BA7BEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BEC
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BEC#FFFFFF#000000##000000
##BA7BEC1.002.947.137.13
#FFFFFF2.941.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E94F0
Deuteranopia (green-blind)
#6F97E9
Tritanopia (blue-blind)
#B38EA9
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba7bec;
/* rgb */ color: rgb(186, 123, 236);
/* oklch */ color: oklch(69.3% 0.170 308.3);
Tailwind
colors: {
  custom: {
    50: '#d1a3f2',
    500: '#ba7bec',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bec;
$custom-light: #d1a3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bec",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 236
  },
  "hsl": {
    "h": 273.451,
    "s": 74.834,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69293,
    "c": 0.17039,
    "h": 308.3
  },
  "luminance": 0.30661
}

Semantic roles & 50–950 ramp

primary
#BA7BEC
secondary
#E0F1D2
accent
#D70F67
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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