#BA7EEB#BA7EEB

#BA7EEB is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.7% C 0.164 H 308.1°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#BA7EEB
RGBrgb(186, 126, 235)
HSLhsl(273, 73%, 71%)
HSVhsv(273, 46%, 92%)
CMYKcmyk(20.9%, 46.4%, 0%, 7.8%)
CIE-LABlab(62.81, 43.25, -46.37)
CIE-LCHlch(62.81, 63.41, 313.01°)
OKLaboklab(69.72% 0.1014 -0.1294)
OKLCHoklch(69.72% 0.164 308.1)
XYZxyz(42.7030, 31.3595, 82.3845)
Luminance0.3136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EEB #AFEB7E
analogous
#837EEB #BA7EEB #EB7EE5
triadic
#BA7EEB #EBBA7E #7EEBBA
tetradic
#BA7EEB #EB837E #AFEB7E #7EE5EB
square
#BA7EEB #EB837E #AFEB7E #7EE5EB
split-complementary
#BA7EEB #E5EB7E #7EEB83
monochromatic
#8020CF #9E49E3 #BA7EEB #D6B3F3 #F1E5FB

Accessibility & contrast

On white

2.89
#BA7EEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#BA7EEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7EEB
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EEB#FFFFFF#000000##000000
##BA7EEB1.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6395EF
Deuteranopia (green-blind)
#7399E8
Tritanopia (blue-blind)
#B390A9
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7eeb;
/* rgb */ color: rgb(186, 126, 235);
/* oklch */ color: oklch(69.7% 0.164 308.1);
Tailwind
colors: {
  custom: {
    50: '#d1a5f2',
    500: '#ba7eeb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7eeb;
$custom-light: #d1a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7eeb",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 235
  },
  "hsl": {
    "h": 273.028,
    "s": 73.154,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69716,
    "c": 0.16442,
    "h": 308.1
  },
  "luminance": 0.31359
}

Semantic roles & 50–950 ramp

primary
#BA7EEB
secondary
#E1F1D4
accent
#D51069
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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