#BA6DF5#BA6DF5

#BA6DF5 is a light, highly saturated violet. Relative luminance 0.280; OKLCH L 67.7% C 0.202 H 308.0°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#BA6DF5
RGBrgb(186, 109, 245)
HSLhsl(274, 87%, 69%)
HSVhsv(274, 56%, 96%)
CMYKcmyk(24.1%, 55.5%, 0%, 3.9%)
CIE-LABlab(59.86, 54.44, -56.58)
CIE-LCHlch(59.86, 78.52, 313.90°)
OKLaboklab(67.7% 0.1245 -0.1591)
OKLCHoklch(67.7% 0.202 308)
XYZxyz(42.1965, 27.9695, 89.5442)
Luminance0.2797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DF5 #A8F56D
analogous
#766DF5 #BA6DF5 #F56DEC
triadic
#BA6DF5 #F5BA6D #6DF5BA
tetradic
#BA6DF5 #F5766D #A8F56D #6DECF5
square
#BA6DF5 #F5766D #A8F56D #6DECF5
split-complementary
#BA6DF5 #ECF56D #6DF576
monochromatic
#810FD9 #9F34F1 #BA6DF5 #D5A6F9 #F0E0FD

Accessibility & contrast

On white

3.18
#BA6DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#BA6DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DF5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DF5#FFFFFF#000000##000000
##BA6DF51.003.186.596.59
#FFFFFF3.181.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8DF9
Deuteranopia (green-blind)
#5B91F2
Tritanopia (blue-blind)
#B186A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6df5;
/* rgb */ color: rgb(186, 109, 245);
/* oklch */ color: oklch(67.7% 0.202 308.0);
Tailwind
colors: {
  custom: {
    50: '#d29af9',
    500: '#ba6df5',
    950: '#000000',
  },
}
SCSS
$custom: #ba6df5;
$custom-light: #d29af9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6df5",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 245
  },
  "hsl": {
    "h": 273.971,
    "s": 87.179,
    "l": 69.412
  },
  "oklch": {
    "l": 0.677,
    "c": 0.20208,
    "h": 308
  },
  "luminance": 0.27969
}

Semantic roles & 50–950 ramp

primary
#BA6DF5
secondary
#DCF2CB
accent
#E40264
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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