#BA6FEA#BA6FEA

#BA6FEA is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.4% C 0.187 H 310.5°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#BA6FEA
RGBrgb(186, 111, 234)
HSLhsl(277, 75%, 68%)
HSVhsv(277, 53%, 92%)
CMYKcmyk(20.5%, 52.6%, 0%, 8.2%)
CIE-LABlab(59.66, 51.00, -50.79)
CIE-LCHlch(59.66, 71.98, 315.11°)
OKLaboklab(67.36% 0.1214 -0.1422)
OKLCHoklch(67.36% 0.187 310.5)
XYZxyz(40.7827, 27.7493, 81.0337)
Luminance0.2775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FEA #9FEA6F
analogous
#7C6FEA #BA6FEA #EA6FDD
triadic
#BA6FEA #EABA6F #6FEABA
tetradic
#BA6FEA #EA7C6F #9FEA6F #6FDDEA
square
#BA6FEA #EA7C6F #9FEA6F #6FDDEA
split-complementary
#BA6FEA #DDEA6F #6FEA7C
monochromatic
#821CC2 #A03AE2 #BA6FEA #D4A4F2 #EDDAFA

Accessibility & contrast

On white

3.21
#BA6FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#BA6FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FEA
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FEA#FFFFFF#000000##000000
##BA6FEA1.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8CEE
Deuteranopia (green-blind)
#6591E7
Tritanopia (blue-blind)
#B484A2
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6fea;
/* rgb */ color: rgb(186, 111, 234);
/* oklch */ color: oklch(67.4% 0.187 310.5);
Tailwind
colors: {
  custom: {
    50: '#d19bf1',
    500: '#ba6fea',
    950: '#000000',
  },
}
SCSS
$custom: #ba6fea;
$custom-light: #d19bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6fea",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 234
  },
  "hsl": {
    "h": 276.585,
    "s": 74.545,
    "l": 67.647
  },
  "oklch": {
    "l": 0.67362,
    "c": 0.187,
    "h": 310.5
  },
  "luminance": 0.27748
}

Semantic roles & 50–950 ramp

primary
#BA6FEA
secondary
#D6EDC7
accent
#D70F5D
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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