#BA7EEC#BA7EEC

#BA7EEC is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.8% C 0.166 H 307.8°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#BA7EEC
RGBrgb(186, 126, 236)
HSLhsl(273, 74%, 71%)
HSVhsv(273, 47%, 93%)
CMYKcmyk(21.2%, 46.6%, 0%, 7.5%)
CIE-LABlab(62.86, 43.48, -46.84)
CIE-LCHlch(62.86, 63.91, 312.86°)
OKLaboklab(69.77% 0.1016 -0.1308)
OKLCHoklch(69.77% 0.166 307.8)
XYZxyz(42.8479, 31.4174, 83.1475)
Luminance0.3142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EEC #B0EC7E
analogous
#837EEC #BA7EEC #EC7EE7
triadic
#BA7EEC #ECBA7E #7EECBA
tetradic
#BA7EEC #EC837E #B0EC7E #7EE7EC
square
#BA7EEC #EC837E #B0EC7E #7EE7EC
split-complementary
#BA7EEC #E7EC7E #7EEC83
monochromatic
#801FD1 #9D49E4 #BA7EEC #D7B3F4 #F1E4FB

Accessibility & contrast

On white

2.88
#BA7EEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#BA7EEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EEC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EEC#FFFFFF#000000##000000
##BA7EEC1.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6296F0
Deuteranopia (green-blind)
#7299E9
Tritanopia (blue-blind)
#B390AA
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7eec;
/* rgb */ color: rgb(186, 126, 236);
/* oklch */ color: oklch(69.8% 0.166 307.8);
Tailwind
colors: {
  custom: {
    50: '#d1a5f2',
    500: '#ba7eec',
    950: '#000000',
  },
}
SCSS
$custom: #ba7eec;
$custom-light: #d1a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7eec",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 272.727,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69768,
    "c": 0.1656,
    "h": 307.8
  },
  "luminance": 0.31417
}

Semantic roles & 50–950 ramp

primary
#BA7EEC
secondary
#E2F2D4
accent
#D60F6A
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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