#BA6EE7#BA6EE7

#BA6EE7 is a light, vivid violet. Relative luminance 0.274; OKLCH L 67.0% C 0.185 H 311.4°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#BA6EE7
RGBrgb(186, 110, 231)
HSLhsl(278, 72%, 67%)
HSVhsv(278, 52%, 91%)
CMYKcmyk(19.5%, 52.4%, 0%, 9.4%)
CIE-LABlab(59.31, 50.86, -49.68)
CIE-LCHlch(59.31, 71.10, 315.67°)
OKLaboklab(67.05% 0.1225 -0.139)
OKLCHoklch(67.05% 0.185 311.4)
XYZxyz(40.2468, 27.3613, 78.7469)
Luminance0.2736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6EE7 #9BE76E
analogous
#7E6EE7 #BA6EE7 #E76ED8
triadic
#BA6EE7 #E7BA6E #6EE7BA
tetradic
#BA6EE7 #E77E6E #9BE76E #6ED8E7
square
#BA6EE7 #E77E6E #9BE76E #6ED8E7
split-complementary
#BA6EE7 #D8E76E #6EE77E
monochromatic
#811FBC #A139DE #BA6EE7 #D3A3F0 #ECD7F8

Accessibility & contrast

On white

3.24
#BA6EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#BA6EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6EE7
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6EE7#FFFFFF#000000##000000
##BA6EE71.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8BEB
Deuteranopia (green-blind)
#6690E4
Tritanopia (blue-blind)
#B582A0
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba6ee7;
/* rgb */ color: rgb(186, 110, 231);
/* oklch */ color: oklch(67.0% 0.185 311.4);
Tailwind
colors: {
  custom: {
    50: '#d19aef',
    500: '#ba6ee7',
    950: '#000000',
  },
}
SCSS
$custom: #ba6ee7;
$custom-light: #d19aef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6ee7",
  "rgb": {
    "r": 186,
    "g": 110,
    "b": 231
  },
  "hsl": {
    "h": 277.686,
    "s": 71.598,
    "l": 66.863
  },
  "oklch": {
    "l": 0.6705,
    "c": 0.18525,
    "h": 311.4
  },
  "luminance": 0.2736
}

Semantic roles & 50–950 ramp

primary
#BA6EE7
secondary
#D3ECC5
accent
#D4125A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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