#BA6BEA#BA6BEA

#BA6BEA is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.8% C 0.193 H 311.0°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#BA6BEA
RGBrgb(186, 107, 234)
HSLhsl(277, 75%, 67%)
HSVhsv(277, 54%, 92%)
CMYKcmyk(20.5%, 54.3%, 0%, 8.2%)
CIE-LABlab(58.88, 53.05, -52.04)
CIE-LCHlch(58.88, 74.32, 315.55°)
OKLaboklab(66.79% 0.1266 -0.1458)
OKLCHoklch(66.79% 0.193 311)
XYZxyz(40.3560, 26.8958, 80.8914)
Luminance0.2690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BEA #9BEA6B
analogous
#7B6BEA #BA6BEA #EA6BDA
triadic
#BA6BEA #EABA6B #6BEABA
tetradic
#BA6BEA #EA7B6B #9BEA6B #6BDAEA
square
#BA6BEA #EA7B6B #9BEA6B #6BDAEA
split-complementary
#BA6BEA #DAEA6B #6BEA7B
monochromatic
#811BBF #A135E2 #BA6BEA #D3A1F2 #ECD6F9

Accessibility & contrast

On white

3.29
#BA6BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#BA6BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BEA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BEA#FFFFFF#000000##000000
##BA6BEA1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#468AEE
Deuteranopia (green-blind)
#618FE7
Tritanopia (blue-blind)
#B481A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6bea;
/* rgb */ color: rgb(186, 107, 234);
/* oklch */ color: oklch(66.8% 0.193 311.0);
Tailwind
colors: {
  custom: {
    50: '#d198f1',
    500: '#ba6bea',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bea;
$custom-light: #d198f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bea",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 234
  },
  "hsl": {
    "h": 277.323,
    "s": 75.148,
    "l": 66.863
  },
  "oklch": {
    "l": 0.66785,
    "c": 0.19311,
    "h": 311
  },
  "luminance": 0.26895
}

Semantic roles & 50–950 ramp

primary
#BA6BEA
secondary
#D3EDC4
accent
#D70E5A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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