#BA6DF7#BA6DF7

#BA6DF7 is a light, highly saturated violet. Relative luminance 0.281; OKLCH L 67.8% C 0.204 H 307.6°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#BA6DF7
RGBrgb(186, 109, 247)
HSLhsl(273, 90%, 70%)
HSVhsv(273, 56%, 97%)
CMYKcmyk(24.7%, 55.9%, 0%, 3.1%)
CIE-LABlab(59.97, 54.89, -57.51)
CIE-LCHlch(59.97, 79.50, 313.66°)
OKLaboklab(67.82% 0.1246 -0.1619)
OKLCHoklch(67.82% 0.204 307.6)
XYZxyz(42.5034, 28.0923, 91.1609)
Luminance0.2809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6DF7 #AAF76D
analogous
#756DF7 #BA6DF7 #F76DEF
triadic
#BA6DF7 #F7BA6D #6DF7BA
tetradic
#BA6DF7 #F7756D #AAF76D #6DEFF7
square
#BA6DF7 #F7756D #AAF76D #6DEFF7
split-complementary
#BA6DF7 #EFF76D #6DF775
monochromatic
#810CDD #9F33F4 #BA6DF7 #D5A7FA #F1E1FD

Accessibility & contrast

On white

3.17
#BA6DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#BA6DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6DF7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6DF7#FFFFFF#000000##000000
##BA6DF71.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8EFC
Deuteranopia (green-blind)
#5991F4
Tritanopia (blue-blind)
#B187A8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba6df7;
/* rgb */ color: rgb(186, 109, 247);
/* oklch */ color: oklch(67.8% 0.204 307.6);
Tailwind
colors: {
  custom: {
    50: '#d29afa',
    500: '#ba6df7',
    950: '#000000',
  },
}
SCSS
$custom: #ba6df7;
$custom-light: #d29afa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6df7",
  "rgb": {
    "r": 186,
    "g": 109,
    "b": 247
  },
  "hsl": {
    "h": 273.478,
    "s": 89.61,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67818,
    "c": 0.20427,
    "h": 307.6
  },
  "luminance": 0.28092
}

Semantic roles & 50–950 ramp

primary
#BA6DF7
secondary
#DEF3CC
accent
#E60065
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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