#BA6BE7#BA6BE7

#BA6BE7 is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.6% C 0.190 H 311.7°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#BA6BE7
RGBrgb(186, 107, 231)
HSLhsl(278, 72%, 66%)
HSVhsv(278, 54%, 91%)
CMYKcmyk(19.5%, 53.7%, 0%, 9.4%)
CIE-LABlab(58.72, 52.41, -50.62)
CIE-LCHlch(58.72, 72.86, 316.00°)
OKLaboklab(66.62% 0.1264 -0.1417)
OKLCHoklch(66.62% 0.19 311.7)
XYZxyz(39.9286, 26.7249, 78.6408)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BE7 #98E76B
analogous
#7C6BE7 #BA6BE7 #E76BD6
triadic
#BA6BE7 #E7BA6B #6BE7BA
tetradic
#BA6BE7 #E77C6B #98E76B #6BD6E7
square
#BA6BE7 #E77C6B #98E76B #6BD6E7
split-complementary
#BA6BE7 #D6E76B #6BE77C
monochromatic
#811EBA #A136DE #BA6BE7 #D3A0F0 #EBD4F8

Accessibility & contrast

On white

3.31
#BA6BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#BA6BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BE7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BE7#FFFFFF#000000##000000
##BA6BE71.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4989EB
Deuteranopia (green-blind)
#638FE4
Tritanopia (blue-blind)
#B5809F
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba6be7;
/* rgb */ color: rgb(186, 107, 231);
/* oklch */ color: oklch(66.6% 0.190 311.7);
Tailwind
colors: {
  custom: {
    50: '#d198ef',
    500: '#ba6be7',
    950: '#000000',
  },
}
SCSS
$custom: #ba6be7;
$custom-light: #d198ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6be7",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 231
  },
  "hsl": {
    "h": 278.226,
    "s": 72.093,
    "l": 66.275
  },
  "oklch": {
    "l": 0.66617,
    "c": 0.18988,
    "h": 311.7
  },
  "luminance": 0.26724
}

Semantic roles & 50–950 ramp

primary
#BA6BE7
secondary
#D1EBC3
accent
#D41158
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA6BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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