#BA6DF2#BA6DF2

#BA6DF2 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.5% C 0.199 H 308.7°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#BA6DF2
RGBrgb(186, 109, 242)
HSLhsl(275, 84%, 69%)
HSVhsv(275, 55%, 95%)
CMYKcmyk(23.1%, 55%, 0%, 5.1%)
CIE-LABlab(59.70, 53.78, -55.18)
CIE-LCHlch(59.70, 77.06, 314.26°)
OKLaboklab(67.53% 0.1244 -0.155)
OKLCHoklch(67.53% 0.199 308.7)
XYZxyz(41.7422, 27.7878, 87.1518)
Luminance0.2779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DF2 #A5F26D
analogous
#786DF2 #BA6DF2 #F26DE8
triadic
#BA6DF2 #F2BA6D #6DF2BA
tetradic
#BA6DF2 #F2786D #A5F26D #6DE8F2
square
#BA6DF2 #F2786D #A5F26D #6DE8F2
split-complementary
#BA6DF2 #E8F26D #6DF278
monochromatic
#8113D2 #9F35ED #BA6DF2 #D5A5F7 #EFDDFC

Accessibility & contrast

On white

3.20
#BA6DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#BA6DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DF2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DF2#FFFFFF#000000##000000
##BA6DF21.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF6
Deuteranopia (green-blind)
#5D91EF
Tritanopia (blue-blind)
#B285A5
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6df2;
/* rgb */ color: rgb(186, 109, 242);
/* oklch */ color: oklch(67.5% 0.199 308.7);
Tailwind
colors: {
  custom: {
    50: '#d29af7',
    500: '#ba6df2',
    950: '#000000',
  },
}
SCSS
$custom: #ba6df2;
$custom-light: #d29af7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6df2",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 242
  },
  "hsl": {
    "h": 274.737,
    "s": 83.648,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67526,
    "c": 0.1988,
    "h": 308.7
  },
  "luminance": 0.27787
}

Semantic roles & 50–950 ramp

primary
#BA6DF2
secondary
#DAF1CA
accent
#E00561
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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