#BA6FED#BA6FED

#BA6FED is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.5% C 0.190 H 309.7°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#BA6FED
RGBrgb(186, 111, 237)
HSLhsl(276, 78%, 68%)
HSVhsv(276, 53%, 93%)
CMYKcmyk(21.5%, 53.2%, 0%, 7.1%)
CIE-LABlab(59.82, 51.65, -52.21)
CIE-LCHlch(59.82, 73.44, 314.69°)
OKLaboklab(67.53% 0.1216 -0.1464)
OKLCHoklch(67.53% 0.19 309.7)
XYZxyz(41.2173, 27.9231, 83.3227)
Luminance0.2792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6FED #A2ED6F
analogous
#7B6FED #BA6FED #ED6FE1
triadic
#BA6FED #EDBA6F #6FEDBA
tetradic
#BA6FED #ED7B6F #A2ED6F #6FE1ED
square
#BA6FED #ED7B6F #A2ED6F #6FE1ED
split-complementary
#BA6FED #E1ED6F #6FED7B
monochromatic
#8219C9 #A039E6 #BA6FED #D4A5F4 #EEDCFB

Accessibility & contrast

On white

3.19
#BA6FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#BA6FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6FED
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6FED#FFFFFF#000000##000000
##BA6FED1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8DF1
Deuteranopia (green-blind)
#6391EA
Tritanopia (blue-blind)
#B385A4
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6fed;
/* rgb */ color: rgb(186, 111, 237);
/* oklch */ color: oklch(67.5% 0.190 309.7);
Tailwind
colors: {
  custom: {
    50: '#d19bf3',
    500: '#ba6fed',
    950: '#000000',
  },
}
SCSS
$custom: #ba6fed;
$custom-light: #d19bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6fed",
  "rgb": {
    "r": 186,
    "g": 111,
    "b": 237
  },
  "hsl": {
    "h": 275.714,
    "s": 77.778,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6753,
    "c": 0.1903,
    "h": 309.7
  },
  "luminance": 0.27922
}

Semantic roles & 50–950 ramp

primary
#BA6FED
secondary
#D8EFC9
accent
#DA0B5F
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6FED

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

Preview Lab → · Contrast checker → · Palette generator →

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